Merge pull request #543 from Dmitry-Me/pointerAssertInShallowEqual

Pointer assertion
This commit is contained in:
Lee Thomason 2017-03-22 14:36:32 -07:00 committed by GitHub
commit fc05f63575
1 changed files with 1 additions and 0 deletions

View File

@ -1133,6 +1133,7 @@ XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const
bool XMLText::ShallowEqual( const XMLNode* compare ) const
{
TIXMLASSERT( compare );
const XMLText* text = compare->ToText();
return ( text && XMLUtil::StringEqual( text->Value(), Value() ) );
}