From 256adb6371b7cf33bedbc91a156eebe7859f3958 Mon Sep 17 00:00:00 2001 From: Lee Thomason Date: Sun, 6 Apr 2014 14:41:46 -0700 Subject: [PATCH] missing default parameter for compact mode in XMLPrinter --- setversion.py | 4 +++- tinyxml2.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/setversion.py b/setversion.py index 325cb75..12fc7df 100755 --- a/setversion.py +++ b/setversion.py @@ -116,4 +116,6 @@ print( "Release note:" ) print( '1. Build. g++ -Wall -DDEBUG tinyxml2.cpp xmltest.cpp -o gccxmltest.exe' ) print( '2. Commit. git commit -am"setting the version to ' + versionStr + '"' ) print( '3. Tag. git tag ' + versionStr ) -print( ' OR git tag -a ' + versionStr + ' -m ' ) \ No newline at end of file +print( ' OR git tag -a ' + versionStr + ' -m ' ) +print( 'Remember to "git push" both code and tag.' ) + \ No newline at end of file diff --git a/tinyxml2.h b/tinyxml2.h index cb1dc1b..23ea80b 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1964,7 +1964,7 @@ public: /** If streaming, start writing an element. The element must be closed with CloseElement() */ - void OpenElement( const char* name, bool compactMode ); + void OpenElement( const char* name, bool compactMode=false ); /// If streaming, add an attribute to an open element. void PushAttribute( const char* name, const char* value ); void PushAttribute( const char* name, int value ); @@ -1972,7 +1972,7 @@ public: void PushAttribute( const char* name, bool value ); void PushAttribute( const char* name, double value ); /// If streaming, close the Element. - virtual void CloseElement( bool compactMode ); + virtual void CloseElement( bool compactMode=false ); /// Add a text node. void PushText( const char* text, bool cdata=false );