Add more pointer pre-asserts

This commit is contained in:
Dmitry-Me 2014-12-12 10:38:48 +03:00
parent f0e8fac4ee
commit ed2a407a88

View File

@ -663,6 +663,7 @@ void XMLNode::DeleteChild( XMLNode* node )
XMLNode* XMLNode::InsertEndChild( XMLNode* addThis ) XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
{ {
TIXMLASSERT( addThis );
if ( addThis->_document != _document ) { if ( addThis->_document != _document ) {
TIXMLASSERT( false ); TIXMLASSERT( false );
return 0; return 0;
@ -696,6 +697,7 @@ XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
XMLNode* XMLNode::InsertFirstChild( XMLNode* addThis ) XMLNode* XMLNode::InsertFirstChild( XMLNode* addThis )
{ {
TIXMLASSERT( addThis );
if ( addThis->_document != _document ) { if ( addThis->_document != _document ) {
TIXMLASSERT( false ); TIXMLASSERT( false );
return 0; return 0;