mirror of https://github.com/AxioDL/tinyxml2.git
Add more pointer pre-asserts
This commit is contained in:
parent
f0e8fac4ee
commit
ed2a407a88
|
@ -663,6 +663,7 @@ void XMLNode::DeleteChild( XMLNode* node )
|
|||
|
||||
XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
|
||||
{
|
||||
TIXMLASSERT( addThis );
|
||||
if ( addThis->_document != _document ) {
|
||||
TIXMLASSERT( false );
|
||||
return 0;
|
||||
|
@ -696,6 +697,7 @@ XMLNode* XMLNode::InsertEndChild( XMLNode* addThis )
|
|||
|
||||
XMLNode* XMLNode::InsertFirstChild( XMLNode* addThis )
|
||||
{
|
||||
TIXMLASSERT( addThis );
|
||||
if ( addThis->_document != _document ) {
|
||||
TIXMLASSERT( false );
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue