You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/03/07 17:07:03 UTC
cvs commit: xml-xalan/c/src/XercesPlatformSupport XercesStdTextOutputStream.cpp
dbertoni 00/03/07 08:07:03
Modified: c/src/XercesPlatformSupport XercesStdTextOutputStream.cpp
Log:
Conditional use of namespaces.
Revision Changes Path
1.4 +9 -1 xml-xalan/c/src/XercesPlatformSupport/XercesStdTextOutputStream.cpp
Index: XercesStdTextOutputStream.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XercesPlatformSupport/XercesStdTextOutputStream.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XercesStdTextOutputStream.cpp 2000/02/03 20:13:27 1.3
+++ XercesStdTextOutputStream.cpp 2000/03/07 16:07:01 1.4
@@ -70,7 +70,11 @@
+#if defined(XALAN_NO_NAMESPACES)
+XercesStdTextOutputStream::XercesStdTextOutputStream(ostream& theOutputStream) :
+#else
XercesStdTextOutputStream::XercesStdTextOutputStream(std::ostream& theOutputStream) :
+#endif
XercesTextOutputStream(),
m_outputStream(theOutputStream)
{
@@ -116,9 +120,13 @@
const DOMString& theMessage,
int theErrorCode)
{
+#if !defined(XALAN_NO_NAMESPACES)
+using std::ostrstream;
+#endif
+
DOMString theResult(clone(theMessage));
- std::ostrstream theFormatter;
+ ostrstream theFormatter;
theFormatter << ". The error code was "
<< theErrorCode