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

Method ShallowClone

external/tinyxml2.cpp:1206–1214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1204
1205
1206XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const
1207{
1208 if ( !doc ) {
1209 doc = _document;
1210 }
1211 XMLText* text = doc->NewText( Value() ); // fixme: this will always allocate memory. Intern?
1212 text->SetCData( this->CData() );
1213 return text;
1214}
1215
1216
1217bool 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.45
ValueMethod · 0.45

Tested by

no test coverage detected