MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / SetText

Method SetText

externals/tinyxml2/tinyxml2.cpp:1707–1715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1705
1706
1707void XMLElement::SetText( const char* inText )
1708{
1709 if ( FirstChild() && FirstChild()->ToText() )
1710 FirstChild()->SetValue( inText );
1711 else {
1712 XMLText* theText = GetDocument()->NewText( inText );
1713 InsertFirstChild( theText );
1714 }
1715}
1716
1717
1718void XMLElement::SetText( int v )

Callers

nothing calls this directly

Calls 4

FirstChildFunction · 0.85
GetDocumentFunction · 0.85
SetValueMethod · 0.80
NewTextMethod · 0.80

Tested by

no test coverage detected