MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / InsertEndChild

Method InsertEndChild

ogsr_engine/xrCore/XML_Parser/tinyxml.cpp:189–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187}
188
189TiXmlNode* TiXmlNode::InsertEndChild(const TiXmlNode& addThis)
190{
191 if (addThis.Type() == TiXmlNode::DOCUMENT)
192 {
193 if (GetDocument())
194 GetDocument()->SetError(TIXML_ERROR_DOCUMENT_TOP_ONLY, 0, 0, TIXML_ENCODING_UNKNOWN);
195 return 0;
196 }
197 TiXmlNode* node = addThis.Clone();
198 if (!node)
199 return 0;
200
201 return LinkEndChild(node);
202}
203
204TiXmlNode* TiXmlNode::InsertBeforeChild(TiXmlNode* beforeThis, const TiXmlNode& addThis)
205{

Callers

nothing calls this directly

Calls 3

SetErrorMethod · 0.80
CloneMethod · 0.80
TypeMethod · 0.45

Tested by

no test coverage detected