Better document warning suppression code

This commit is contained in:
Dmitry-Me 2015-07-02 13:59:30 +03:00
parent 4824e95bc0
commit 8dd493b268
1 changed files with 2 additions and 1 deletions

View File

@ -1769,7 +1769,8 @@ XMLDocument::XMLDocument( bool processEntities, Whitespace whitespace ) :
_errorStr2( 0 ),
_charBuffer( 0 )
{
_document = this; // avoid warning about 'this' in initializer list
// avoid VC++ C4355 warning about 'this' in initializer list (C4355 is off by default in VS2012+)
_document = this;
}