mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-12-13 23:26:13 +00:00
Reuse const FindAttribute for non-const version thereof
This commit is contained in:
11
tinyxml2.cpp
11
tinyxml2.cpp
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user