Merge pull request #517 from Dmitry-Me/initMemberVars

Initialize member variables
This commit is contained in:
Lee Thomason 2017-01-24 10:38:49 -08:00 committed by GitHub
commit 1f5ab7cd0b
1 changed files with 3 additions and 1 deletions

View File

@ -1961,7 +1961,9 @@ XMLDocument::XMLDocument( bool processEntities, Whitespace whitespace ) :
_processEntities( processEntities ), _processEntities( processEntities ),
_errorID(XML_SUCCESS), _errorID(XML_SUCCESS),
_whitespace( whitespace ), _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+) // avoid VC++ C4355 warning about 'this' in initializer list (C4355 is off by default in VS2012+)
_document = this; _document = this;