MCPcopy Create free account
hub / github.com/avast/retdec / DeepCopy

Method DeepCopy

deps/tinyxml2/tinyxml2.cpp:2151–2162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2149
2150
2151void XMLDocument::DeepCopy(XMLDocument* target) const
2152{
2153 TIXMLASSERT(target);
2154 if (target == this) {
2155 return; // technically success - a no-op.
2156 }
2157
2158 target->Clear();
2159 for (const XMLNode* node = this->FirstChild(); node; node = node->NextSibling()) {
2160 target->InsertEndChild(node->DeepClone(target));
2161 }
2162}
2163
2164XMLElement* XMLDocument::NewElement( const char* name )
2165{

Callers

nothing calls this directly

Calls 3

InsertEndChildMethod · 0.80
DeepCloneMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected