From ae8a82a7341200b51ecd19485ec276f2b9a5e47d Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 3 Mar 2017 15:40:32 +0300 Subject: [PATCH] Clearer variable name --- tinyxml2.cpp | 4 ++-- tinyxml2.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index d3adddc..adf7b5f 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1956,12 +1956,12 @@ const char* XMLDocument::_errorNames[XML_ERROR_COUNT] = { }; -XMLDocument::XMLDocument( bool processEntities, Whitespace whitespace ) : +XMLDocument::XMLDocument( bool processEntities, Whitespace whitespaceMode ) : XMLNode( 0 ), _writeBOM( false ), _processEntities( processEntities ), _errorID(XML_SUCCESS), - _whitespace( whitespace ), + _whitespaceMode( whitespaceMode ), _errorLineNum( 0 ), _charBuffer( 0 ), _parseCurLineNum( 0 ) diff --git a/tinyxml2.h b/tinyxml2.h index 55a22d9..bfd2204 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1613,7 +1613,7 @@ class TINYXML2_LIB XMLDocument : public XMLNode friend class XMLElement; public: /// constructor - XMLDocument( bool processEntities = true, Whitespace = PRESERVE_WHITESPACE ); + XMLDocument( bool processEntities = true, Whitespace whitespaceMode = PRESERVE_WHITESPACE ); ~XMLDocument(); virtual XMLDocument* ToDocument() { @@ -1677,7 +1677,7 @@ public: return _processEntities; } Whitespace WhitespaceMode() const { - return _whitespace; + return _whitespaceMode; } /** @@ -1815,7 +1815,7 @@ private: bool _writeBOM; bool _processEntities; XMLError _errorID; - Whitespace _whitespace; + Whitespace _whitespaceMode; mutable StrPair _errorStr1; mutable StrPair _errorStr2; int _errorLineNum;