MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / DeleteAttribute

Method DeleteAttribute

ReClass/tinyxml2.cpp:1788–1804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1786
1787
1788void XMLElement::DeleteAttribute( const char* name )
1789{
1790 XMLAttribute* prev = 0;
1791 for( XMLAttribute* a=_rootAttribute; a; a=a->_next ) {
1792 if ( XMLUtil::StringEqual( name, a->Name() ) ) {
1793 if ( prev ) {
1794 prev->_next = a->_next;
1795 }
1796 else {
1797 _rootAttribute = a->_next;
1798 }
1799 DeleteAttribute( a );
1800 break;
1801 }
1802 prev = a;
1803 }
1804}
1805
1806
1807char* XMLElement::ParseAttributes( char* p, int* curLineNumPtr )

Callers

nothing calls this directly

Calls 3

StringEqualFunction · 0.85
NameMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected