MCPcopy Create free account
hub / github.com/ajkhoury/ReClassEx / ShallowClone

Method ShallowClone

ReClass/tinyxml2.cpp:1162–1170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1160
1161
1162XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const
1163{
1164 if ( !doc ) {
1165 doc = _document;
1166 }
1167 XMLText* text = doc->NewText( Value() ); // fixme: this will always allocate memory. Intern?
1168 text->SetCData( this->CData() );
1169 return text;
1170}
1171
1172
1173bool 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