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

Method InsertChildPreamble

externals/tinyxml2/tinyxml2.cpp:1203–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1201}
1202
1203void XMLNode::InsertChildPreamble( XMLNode* insertThis ) const
1204{
1205 TIXMLASSERT( insertThis );
1206 TIXMLASSERT( insertThis->_document == _document );
1207
1208 if (insertThis->_parent) {
1209 insertThis->_parent->Unlink( insertThis );
1210 }
1211 else {
1212 insertThis->_document->MarkInUse(insertThis);
1213 insertThis->_memPool->SetTracked();
1214 }
1215}
1216
1217const XMLElement* XMLNode::ToElementWithName( const char* name ) const
1218{

Callers

nothing calls this directly

Calls 3

UnlinkMethod · 0.80
MarkInUseMethod · 0.80
SetTrackedMethod · 0.80

Tested by

no test coverage detected