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

View File

@@ -1491,7 +1491,9 @@ private:
XMLElement( const XMLElement& ); // not supported
void operator=( const XMLElement& ); // not supported
XMLAttribute* FindAttribute( const char* name );
XMLAttribute* FindAttribute( const char* name ) {
return const_cast<XMLAttribute*>(const_cast<const XMLElement*>(this)->FindAttribute( name ));
}
XMLAttribute* FindOrCreateAttribute( const char* name );
//void LinkAttribute( XMLAttribute* attrib );
char* ParseAttributes( char* p );