mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-14 19:31:23 +00:00
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…
x
Reference in New Issue
Block a user