|
@@ -1691,7 +1691,7 @@ XMLError XMLDocument::Parse( const char* p, size_t len )
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
-void XMLDocument::Print( XMLPrinter* streamer )
|
|
|
|
|
|
|
+void XMLDocument::Print( XMLPrinter* streamer ) const
|
|
|
{
|
|
{
|
|
|
XMLPrinter stdStreamer( stdout );
|
|
XMLPrinter stdStreamer( stdout );
|
|
|
if ( !streamer ) {
|
|
if ( !streamer ) {
|
|
@@ -1839,8 +1839,8 @@ void XMLPrinter::PrintString( const char* p, bool restricted )
|
|
|
|
|
|
|
|
void XMLPrinter::PushHeader( bool writeBOM, bool writeDec )
|
|
void XMLPrinter::PushHeader( bool writeBOM, bool writeDec )
|
|
|
{
|
|
{
|
|
|
- static const unsigned char bom[] = { TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, 0 };
|
|
|
|
|
if ( writeBOM ) {
|
|
if ( writeBOM ) {
|
|
|
|
|
+ static const unsigned char bom[] = { TIXML_UTF_LEAD_0, TIXML_UTF_LEAD_1, TIXML_UTF_LEAD_2, 0 };
|
|
|
Print( "%s", bom );
|
|
Print( "%s", bom );
|
|
|
}
|
|
}
|
|
|
if ( writeDec ) {
|
|
if ( writeDec ) {
|