1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-28 22:52:59 +04:00

Reuse const FindAttribute for non-const version thereof

This commit is contained in:
Dmitry-Me
2014-12-05 13:41:45 +03:00
parent 7254cf7e57
commit 1227d51ed0
2 changed files with 3 additions and 12 deletions
-11
View File
@@ -1243,17 +1243,6 @@ XMLElement::~XMLElement()
}
XMLAttribute* XMLElement::FindAttribute( const char* name )
{
for( XMLAttribute* a = _rootAttribute; a; a = a->_next ) {
if ( XMLUtil::StringEqual( a->Name(), name ) ) {
return a;
}
}
return 0;
}
const XMLAttribute* XMLElement::FindAttribute( const char* name ) const
{
for( XMLAttribute* a = _rootAttribute; a; a = a->_next ) {