MCPcopy Create free account
hub / github.com/DFHack/dfhack / Remove

Method Remove

depends/tinyxml/tinyxml.cpp:1529–1545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1527}
1528
1529void TiXmlAttributeSet::Remove( TiXmlAttribute* removeMe )
1530{
1531 TiXmlAttribute* node;
1532
1533 for( node = sentinel.next; node != &sentinel; node = node->next )
1534 {
1535 if ( node == removeMe )
1536 {
1537 node->prev->next = node->next;
1538 node->next->prev = node->prev;
1539 node->next = 0;
1540 node->prev = 0;
1541 return;
1542 }
1543 }
1544 assert( 0 ); // we tried to remove a non-linked attribute.
1545}
1546
1547
1548#ifdef TIXML_USE_STL

Callers 2

RemoveAttributeMethod · 0.80
ClearThisMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected