commit | 6d202ff20eb00eb1c0ad9634f91b9c45a278fde4 | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Fri Sep 26 14:21:00 2014 +0400 |
committer | Dmitry-Me <wipedout@yandex.ru> | Fri Sep 26 14:21:00 2014 +0400 |
tree | 3521b7c1eca3be6b75a70194b651a194bd0a574a | |
parent | b0776aeead5087b78bc1032565cea325ef3a7060 [diff] [blame] |
Eliminate repeated virtual calls
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 0e1386d..9688e5d 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -913,7 +913,8 @@ bool XMLText::ShallowEqual( const XMLNode* compare ) const { - return ( compare->ToText() && XMLUtil::StringEqual( compare->ToText()->Value(), Value() )); + const XMLText* text = compare->ToText(); + return ( text && XMLUtil::StringEqual( text->Value(), Value() ) ); }