MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / FindOrCreate

Method FindOrCreate

engine/source/persistence/tinyXML/tinyxml.cpp:1530–1539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1528}
1529
1530TiXmlAttribute* TiXmlAttributeSet::FindOrCreate( const std::string& _name )
1531{
1532 TiXmlAttribute* attrib = Find( _name );
1533 if ( !attrib ) {
1534 attrib = new TiXmlAttribute();
1535 Add( attrib );
1536 attrib->SetName( _name );
1537 }
1538 return attrib;
1539}
1540#endif
1541
1542

Callers 2

SetAttributeMethod · 0.80
SetDoubleAttributeMethod · 0.80

Calls 1

SetNameMethod · 0.80

Tested by

no test coverage detected