MCPcopy Create free account
hub / github.com/cemu-project/Cemu / ShallowClone

Method ShallowClone

src/util/tinyxml2/tinyxml2.cpp:1161–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1159
1160
1161 XMLNode* XMLText::ShallowClone(XMLDocument* doc) const
1162 {
1163 if (!doc) {
1164 doc = _document;
1165 }
1166 XMLText* text = doc->NewText(Value()); // fixme: this will always allocate memory. Intern?
1167 text->SetCData(this->CData());
1168 return text;
1169 }
1170
1171
1172 bool XMLText::ShallowEqual(const XMLNode* compare) const

Callers 1

DeepCloneMethod · 0.80

Calls 10

FirstAttributeFunction · 0.85
NewTextMethod · 0.80
NewCommentMethod · 0.80
NewDeclarationMethod · 0.80
NewUnknownMethod · 0.80
NewElementMethod · 0.80
NextMethod · 0.80
SetAttributeMethod · 0.80
NameMethod · 0.80
ValueMethod · 0.80

Tested by

no test coverage detected