1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-29 07:03:00 +04:00

Pointer assertion

This commit is contained in:
Dmitry-Me
2017-03-21 11:39:48 +03:00
parent 395ea09f83
commit ba68a3aea6
+1
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() ) );
}