MCPcopy Create free account
hub / github.com/crossuo/crossuo / DeepClone

Method DeepClone

external/tinyxml2.cpp:813–824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811}
812
813XMLNode* XMLNode::DeepClone(XMLDocument* target) const
814{
815 XMLNode* clone = this->ShallowClone(target);
816 if (!clone) return 0;
817
818 for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) {
819 XMLNode* childClone = child->DeepClone(target);
820 TIXMLASSERT(childClone);
821 clone->InsertEndChild(childClone);
822 }
823 return clone;
824}
825
826void XMLNode::DeleteChildren()
827{

Callers 1

DeepCopyMethod · 0.80

Calls 2

ShallowCloneMethod · 0.80
InsertEndChildMethod · 0.80

Tested by

no test coverage detected