MCPcopy Create free account
hub / github.com/avast/retdec / DeepClone

Method DeepClone

deps/tinyxml2/tinyxml2.cpp:803–814  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

801}
802
803XMLNode* XMLNode::DeepClone(XMLDocument* target) const
804{
805 XMLNode* clone = this->ShallowClone(target);
806 if (!clone) return 0;
807
808 for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) {
809 XMLNode* childClone = child->DeepClone(target);
810 TIXMLASSERT(childClone);
811 clone->InsertEndChild(childClone);
812 }
813 return clone;
814}
815
816void XMLNode::DeleteChildren()
817{

Callers 1

DeepCopyMethod · 0.80

Calls 2

ShallowCloneMethod · 0.80
InsertEndChildMethod · 0.80

Tested by

no test coverage detected