From 6189231187db8cfd56a6a0bb4060121c53167c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Ro=C3=9F?= Date: Sun, 12 May 2013 14:07:38 +0200 Subject: [PATCH] Initialize pointers to satisfy static code analyser. --- tinyxml2.cpp | 3 ++- tinyxml2.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index c13713f..ad00867 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -581,7 +581,8 @@ XMLNode::XMLNode( XMLDocument* doc ) : _document( doc ), _parent( 0 ), _firstChild( 0 ), _lastChild( 0 ), - _prev( 0 ), _next( 0 ) + _prev( 0 ), _next( 0 ), + _memPool( 0 ) { } diff --git a/tinyxml2.h b/tinyxml2.h index b0636a4..9c7e6e9 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -1069,7 +1069,7 @@ public: private: enum { BUF_SIZE = 200 }; - XMLAttribute() : _next( 0 ) {} + XMLAttribute() : _next( 0 ), _memPool( 0 ) {} virtual ~XMLAttribute() {} XMLAttribute( const XMLAttribute& ); // not supported