You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ra...@locus.apache.org on 2000/06/01 01:58:27 UTC
cvs commit: xml-xerces/c/samples/DOMPrint DOMPrint.cpp
rahulj 00/05/31 16:58:27
Modified: c/samples/DOMPrint DOMPrint.cpp
Log:
Needed an explicit char* cast to get it working under Solaris.
Revision Changes Path
1.15 +7 -3 xml-xerces/c/samples/DOMPrint/DOMPrint.cpp
Index: DOMPrint.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/DOMPrint/DOMPrint.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- DOMPrint.cpp 2000/05/31 18:32:36 1.14
+++ DOMPrint.cpp 2000/05/31 23:58:27 1.15
@@ -55,7 +55,7 @@
*/
/*
- * $Id: DOMPrint.cpp,v 1.14 2000/05/31 18:32:36 rahulj Exp $
+ * $Id: DOMPrint.cpp,v 1.15 2000/05/31 23:58:27 rahulj Exp $
*/
@@ -187,8 +187,12 @@
// -----------------------------------------------------------------------
void writeChars(const XMLByte* const toWrite)
{
- // For this one, just dump them to the standard output
- cout << toWrite;
+ // Surprisingly, Solaris was the only platform on which
+ // required the char* cast to print out the string correctly.
+ // Without the cast, it was printing the pointer value in hex.
+ // Quite annoying, considering every other platform printed
+ // the string with the explicit cast to char* below.
+ cout << (char *) toWrite;
}
private: