MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / DeepCopy

Method DeepCopy

native/thirdpart/tinyxml2/tinyxml2.cpp:2226–2237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2224
2225
2226void XMLDocument::DeepCopy(XMLDocument* target) const
2227{
2228 TIXMLASSERT(target);
2229 if (target == this) {
2230 return; // technically success - a no-op.
2231 }
2232
2233 target->Clear();
2234 for (const XMLNode* node = this->FirstChild(); node; node = node->NextSibling()) {
2235 target->InsertEndChild(node->DeepClone(target));
2236 }
2237}
2238
2239XMLElement* XMLDocument::NewElement( const char* name )
2240{

Callers

nothing calls this directly

Calls 3

InsertEndChildMethod · 0.80
DeepCloneMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected