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

Method RemoveAttribute

depends/tinyxml/tinyxml.cpp:437–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435
436
437void TiXmlElement::RemoveAttribute( const char * name )
438{
439 #ifdef TIXML_USE_STL
440 TIXML_STRING str( name );
441 TiXmlAttribute* node = attributeSet.Find( str );
442 #else
443 TiXmlAttribute* node = attributeSet.Find( name );
444 #endif
445 if ( node )
446 {
447 attributeSet.Remove( node );
448 delete node;
449 }
450}
451
452const TiXmlElement* TiXmlNode::FirstChildElement() const
453{

Callers

nothing calls this directly

Calls 2

RemoveMethod · 0.80
FindMethod · 0.45

Tested by

no test coverage detected