From 8dd493b26847612cd2cbe1ee0e722d14819d99a2 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 2 Jul 2015 13:59:30 +0300 Subject: [PATCH] Better document warning suppression code --- tinyxml2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 5c91843..be949d7 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -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; }