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

Method InsertEndChild

depends/tinyxml/tinyxml.cpp:214–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213
214TiXmlNode* TiXmlNode::InsertEndChild( const TiXmlNode& addThis )
215{
216 if ( addThis.Type() == TiXmlNode::TINYXML_DOCUMENT )
217 {
218 if ( GetDocument() )
219 GetDocument()->SetError( TIXML_ERROR_DOCUMENT_TOP_ONLY, 0, 0, TIXML_ENCODING_UNKNOWN );
220 return 0;
221 }
222 TiXmlNode* node = addThis.Clone();
223 if ( !node )
224 return 0;
225
226 return LinkEndChild( node );
227}
228
229
230TiXmlNode* TiXmlNode::InsertBeforeChild( TiXmlNode* beforeThis, const TiXmlNode& addThis )

Callers

nothing calls this directly

Calls 3

TypeMethod · 0.80
SetErrorMethod · 0.80
CloneMethod · 0.80

Tested by

no test coverage detected