MCPcopy Create free account
hub / github.com/SOUI2/soui / FindOrCreate

Method FindOrCreate

tools/src/uiresbuilder/tinyxml/tinyxml.cpp:1577–1586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

SetAttributeMethod · 0.45
SetDoubleAttributeMethod · 0.45

Calls 2

AddFunction · 0.85
SetNameMethod · 0.45

Tested by

no test coverage detected