Merge pull request #513 from leethomason/bool-write
Bool serialization.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e9b44d5..572597c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,7 +61,7 @@
# Add targets
# By Default shared libray is being built
# To build static libs also - Do cmake . -DBUILD_STATIC_LIBS:BOOL=ON
-# User can choose not to build shared library by using cmake -BUILD_SHARED_LIBS:BOOL:OFF
+# User can choose not to build shared library by using cmake -DBUILD_SHARED_LIBS:BOOL=OFF
# To build only static libs use cmake . -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_STATIC_LIBS:BOOL=ON
option(BUILD_SHARED_LIBS "build as shared library" ON)
diff --git a/tinyxml2.cpp b/tinyxml2.cpp
index 1f7a918..ad3acbf 100755
--- a/tinyxml2.cpp
+++ b/tinyxml2.cpp
@@ -1974,7 +1974,9 @@
_processEntities( processEntities ),
_errorID(XML_SUCCESS),
_whitespace( whitespace ),
- _charBuffer( 0 )
+ _errorLineNum( 0 ),
+ _charBuffer( 0 ),
+ _parseCurLineNum( 0 )
{
// avoid VC++ C4355 warning about 'this' in initializer list (C4355 is off by default in VS2012+)
_document = this;
diff --git a/tinyxml2.h b/tinyxml2.h
index 00f6883..25352ee 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -1188,7 +1188,7 @@
private:
enum { BUF_SIZE = 200 };
- XMLAttribute() : _next( 0 ), _memPool( 0 ) {}
+ XMLAttribute() : _parseLineNum( 0 ), _next( 0 ), _memPool( 0 ) {}
virtual ~XMLAttribute() {}
XMLAttribute( const XMLAttribute& ); // not supported