MCPcopy Create free account
hub / github.com/PolygonTek/BlueshiftEngine / ShallowClone

Method ShallowClone

Source/ThirdParty/tinyxml2/tinyxml2.cpp:1088–1096  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1086
1087
1088XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const
1089{
1090 if ( !doc ) {
1091 doc = _document;
1092 }
1093 XMLText* text = doc->NewText( Value() ); // fixme: this will always allocate memory. Intern?
1094 text->SetCData( this->CData() );
1095 return text;
1096}
1097
1098
1099bool XMLText::ShallowEqual( const XMLNode* compare ) const

Callers

nothing calls this directly

Calls 11

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

Tested by

no test coverage detected