Merge pull request #111 from pzychotic/master

Initialize pointers in constructor
This commit is contained in:
Lee Thomason 2013-05-12 20:51:08 -07:00
commit 6db1321100
2 changed files with 3 additions and 2 deletions

View File

@ -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 )
{
}

View File

@ -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