1
0
Эх сурвалжийг харах

Merge pull request #520 from Dmitry-Me/initMemberVars2

Initialize member variable
Lee Thomason 9 жил өмнө
parent
commit
962732fd3e
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      tinyxml2.h

+ 1 - 1
tinyxml2.h

@@ -1177,7 +1177,7 @@ public:
 private:
 private:
     enum { BUF_SIZE = 200 };
     enum { BUF_SIZE = 200 };
 
 
-    XMLAttribute() : _next( 0 ), _memPool( 0 ) {}
+    XMLAttribute() : _parseLineNum( 0 ), _next( 0 ), _memPool( 0 ) {}
     virtual ~XMLAttribute()	{}
     virtual ~XMLAttribute()	{}
 
 
     XMLAttribute( const XMLAttribute& );	// not supported
     XMLAttribute( const XMLAttribute& );	// not supported