MCPcopy Create free account
hub / github.com/avast/retdec / InsertChildPreamble

Method InsertChildPreamble

deps/tinyxml2/tinyxml2.cpp:1139–1151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1137}
1138
1139void XMLNode::InsertChildPreamble( XMLNode* insertThis ) const
1140{
1141 TIXMLASSERT( insertThis );
1142 TIXMLASSERT( insertThis->_document == _document );
1143
1144 if (insertThis->_parent) {
1145 insertThis->_parent->Unlink( insertThis );
1146 }
1147 else {
1148 insertThis->_document->MarkInUse(insertThis);
1149 insertThis->_memPool->SetTracked();
1150 }
1151}
1152
1153const XMLElement* XMLNode::ToElementWithName( const char* name ) const
1154{

Callers

nothing calls this directly

Calls 3

UnlinkMethod · 0.80
MarkInUseMethod · 0.80
SetTrackedMethod · 0.80

Tested by

no test coverage detected