MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / FindOrCreate

Method FindOrCreate

Libraries/tinyxml/tinyxml.cpp:1579–1588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1577}
1578
1579TiXmlAttribute* TiXmlAttributeSet::FindOrCreate( const std::string& _name )
1580{
1581 TiXmlAttribute* attrib = Find( _name );
1582 if ( !attrib ) {
1583 attrib = new TiXmlAttribute();
1584 Add( attrib );
1585 attrib->SetName( _name );
1586 }
1587 return attrib;
1588}
1589#endif
1590
1591

Callers 2

SetAttributeMethod · 0.80
SetDoubleAttributeMethod · 0.80

Calls 2

AddFunction · 0.50
SetNameMethod · 0.45

Tested by

no test coverage detected