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

Method InsertEndChild

Libraries/tinyxml/tinyxml.cpp:231–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229
230
231TiXmlNode* TiXmlNode::InsertEndChild( const TiXmlNode& addThis )
232{
233 if ( addThis.Type() == TiXmlNode::TINYXML_DOCUMENT )
234 {
235 if ( GetDocument() )
236 GetDocument()->SetError( TIXML_ERROR_DOCUMENT_TOP_ONLY, 0, 0, TIXML_ENCODING_UNKNOWN );
237 return 0;
238 }
239 TiXmlNode* node = addThis.Clone();
240 if ( !node )
241 return 0;
242
243 return LinkEndChild( node );
244}
245
246
247TiXmlNode* TiXmlNode::InsertBeforeChild( TiXmlNode* beforeThis, const TiXmlNode& addThis )

Callers 2

SaveMethod · 0.45
mainFunction · 0.45

Calls 5

GetDocumentFunction · 0.85
LinkEndChildFunction · 0.85
TypeMethod · 0.45
SetErrorMethod · 0.45
CloneMethod · 0.45

Tested by 1

mainFunction · 0.36