Преглед изворни кода

Merge pull request #358 from Dmitry-Me/betterDocumentWarningSuppression

Better document warning suppression code
Lee Thomason пре 10 година
родитељ
комит
400e5b2d60
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      tinyxml2.cpp

+ 2 - 1
tinyxml2.cpp

@@ -1769,7 +1769,8 @@ XMLDocument::XMLDocument( bool processEntities, Whitespace whitespace ) :
     _errorStr2( 0 ),
     _errorStr2( 0 ),
     _charBuffer( 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;
 }
 }