MCPcopy Create free account
hub / github.com/avast/retdec / ShallowClone

Method ShallowClone

deps/tinyxml2/tinyxml2.cpp:1196–1204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1194
1195
1196XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const
1197{
1198 if ( !doc ) {
1199 doc = _document;
1200 }
1201 XMLText* text = doc->NewText( Value() ); // fixme: this will always allocate memory. Intern?
1202 text->SetCData( this->CData() );
1203 return text;
1204}
1205
1206
1207bool 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
SetAttributeMethod · 0.80
ValueClass · 0.50
NameMethod · 0.45
ValueMethod · 0.45

Tested by

no test coverage detected