MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / ShallowClone

Method ShallowClone

3rdparty/tinyxml2/tinyxml2.cpp:1260–1268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1258
1259
1260XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const
1261{
1262 if ( !doc ) {
1263 doc = _document;
1264 }
1265 XMLText* text = doc->NewText( Value() ); // fixme: this will always allocate memory. Intern?
1266 text->SetCData( this->CData() );
1267 return text;
1268}
1269
1270
1271bool XMLText::ShallowEqual( const XMLNode* compare ) const

Callers 1

DeepCloneMethod · 0.80

Calls 9

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

Tested by

no test coverage detected