MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / ShallowClone

Method ShallowClone

examples/ThirdPartyLibs/tinyxml2/tinyxml2.cpp:1252–1261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250}
1251
1252XMLNode* XMLText::ShallowClone(XMLDocument* doc) const
1253{
1254 if (!doc)
1255 {
1256 doc = _document;
1257 }
1258 XMLText* text = doc->NewText(Value()); // fixme: this will always allocate memory. Intern?
1259 text->SetCData(this->CData());
1260 return text;
1261}
1262
1263bool XMLText::ShallowEqual(const XMLNode* compare) const
1264{

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
SetAttributeMethod · 0.80
NameMethod · 0.80
NextMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected