MCPcopy Create free account
hub / github.com/crossuo/crossuo / DeepCopy

Method DeepCopy

external/tinyxml2.cpp:2198–2209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2196
2197
2198void XMLDocument::DeepCopy(XMLDocument* target) const
2199{
2200 TIXMLASSERT(target);
2201 if (target == this) {
2202 return; // technically success - a no-op.
2203 }
2204
2205 target->Clear();
2206 for (const XMLNode* node = this->FirstChild(); node; node = node->NextSibling()) {
2207 target->InsertEndChild(node->DeepClone(target));
2208 }
2209}
2210
2211XMLElement* XMLDocument::NewElement( const char* name )
2212{

Callers

nothing calls this directly

Calls 3

InsertEndChildMethod · 0.80
DeepCloneMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected