Merge pull request #214 from Dmitry-Me/duplicateVirtualCalls

Eliminate repeated virtual calls
This commit is contained in:
Lee Thomason 2014-09-27 15:58:19 -07:00
commit f2496f5824
1 changed files with 2 additions and 1 deletions

View File

@ -913,7 +913,8 @@ XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const
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() ) );
}