Prechádzať zdrojové kódy

Initialize member variable

Dmitry-Me 9 rokov pred
rodič
commit
d120d64b86
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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