MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / DeepCopy

Method DeepCopy

ReClass/tinyxml2.cpp:2074–2085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

InsertEndChildMethod · 0.80
DeepCloneMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected