MCPcopy Create free account
hub / github.com/cemu-project/Cemu / DeepCopy

Method DeepCopy

src/util/tinyxml2/tinyxml2.cpp:2073–2084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2071
2072
2073 void XMLDocument::DeepCopy(XMLDocument* target) const
2074 {
2075 TIXMLASSERT(target);
2076 if (target == this) {
2077 return; // technically success - a no-op.
2078 }
2079
2080 target->Clear();
2081 for (const XMLNode* node = this->FirstChild(); node; node = node->NextSibling()) {
2082 target->InsertEndChild(node->DeepClone(target));
2083 }
2084 }
2085
2086 XMLElement* XMLDocument::NewElement(const char* name)
2087 {

Callers

nothing calls this directly

Calls 3

InsertEndChildMethod · 0.80
DeepCloneMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected