MCPcopy Create free account
hub / github.com/JayXon/Leanify / ShallowClone

Method ShallowClone

lib/tinyxml2/tinyxml2.cpp:976–984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

974
975
976XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const
977{
978 if ( !doc ) {
979 doc = _document;
980 }
981 XMLText* text = doc->NewText( Value() ); // fixme: this will always allocate memory. Intern?
982 text->SetCData( this->CData() );
983 return text;
984}
985
986
987bool XMLText::ShallowEqual( const XMLNode* compare ) const

Callers

nothing calls this directly

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