Skip to content

Commit 063d313

Browse files
committed
fix merge
1 parent aba13c5 commit 063d313

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tinyxml2.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,11 +2348,10 @@ static FILE* callfopen( const char* filepath, const char* mode )
23482348
}
23492349

23502350
void XMLDocument::DeleteNode( XMLNode* node ) {
2351-
TIXMLASSERT( node );
2352-
TIXMLASSERT(node->_document == this );
23532351
if(node == 0) {
23542352
return; // check for null pointer
23552353
}
2354+
TIXMLASSERT(node->_document == this);
23562355
if (node->_parent) {
23572356
node->_parent->DeleteChild( node );
23582357
}

0 commit comments

Comments
 (0)