MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / DeleteAttribute

Method DeleteAttribute

sourcecommon/tinyxml2.cpp:1411–1427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1409
1410
1411void XMLElement::DeleteAttribute( const char* name )
1412{
1413 XMLAttribute* prev = 0;
1414 for( XMLAttribute* a=_rootAttribute; a; a=a->_next ) {
1415 if ( XMLUtil::StringEqual( name, a->Name() ) ) {
1416 if ( prev ) {
1417 prev->_next = a->_next;
1418 }
1419 else {
1420 _rootAttribute = a->_next;
1421 }
1422 DeleteAttribute( a );
1423 break;
1424 }
1425 prev = a;
1426 }
1427}
1428
1429
1430char* XMLElement::ParseAttributes( char* p )

Callers

nothing calls this directly

Calls 2

NameMethod · 0.80
FreeMethod · 0.80

Tested by

no test coverage detected