MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / DeepClone

Method DeepClone

native/thirdpart/tinyxml2/tinyxml2.cpp:835–846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835XMLNode* XMLNode::DeepClone(XMLDocument* target) const
836{
837 XMLNode* clone = this->ShallowClone(target);
838 if (!clone) return 0;
839
840 for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) {
841 XMLNode* childClone = child->DeepClone(target);
842 TIXMLASSERT(childClone);
843 clone->InsertEndChild(childClone);
844 }
845 return clone;
846}
847
848void XMLNode::DeleteChildren()
849{

Callers 1

DeepCopyMethod · 0.80

Calls 2

ShallowCloneMethod · 0.80
InsertEndChildMethod · 0.80

Tested by

no test coverage detected