MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / DeepCopy

Method DeepCopy

Dependencies/tinyxml2/src/tinyxml2.cpp:2078–2089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

InsertEndChildMethod · 0.80
DeepCloneMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected