MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / DeepClone

Method DeepClone

Source/ThirdParty/tinyxml2/tinyxml2.cpp:781–792  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781XMLNode* XMLNode::DeepClone(XMLDocument* target) const
782{
783 XMLNode* clone = this->ShallowClone(target);
784 if (!clone) return 0;
785
786 for (const XMLNode* child = this->FirstChild(); child; child = child->NextSibling()) {
787 XMLNode* childClone = child->DeepClone(target);
788 TIXMLASSERT(childClone);
789 clone->InsertEndChild(childClone);
790 }
791 return clone;
792}
793
794void XMLNode::DeleteChildren()
795{

Callers 1

DeepCopyMethod · 0.80

Calls 2

ShallowCloneMethod · 0.80
InsertEndChildMethod · 0.80

Tested by

no test coverage detected