MCPcopy Create free account
hub / github.com/MaxBelkov/visualsyslog / ShallowClone

Method ShallowClone

sourcecommon/tinyxml2.cpp:904–912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902
903
904XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const
905{
906 if ( !doc ) {
907 doc = _document;
908 }
909 XMLText* text = doc->NewText( Value() ); // fixme: this will always allocate memory. Intern?
910 text->SetCData( this->CData() );
911 return text;
912}
913
914
915bool 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