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

Method DeleteNode

deps/tinyxml2/tinyxml2.cpp:1124–1137  ·  view source on GitHub ↗

static*/

Source from the content-addressed store, hash-verified

1122}
1123
1124/*static*/ void XMLNode::DeleteNode( XMLNode* node )
1125{
1126 if ( node == 0 ) {
1127 return;
1128 }
1129 TIXMLASSERT(node->_document);
1130 if (!node->ToDocument()) {
1131 node->_document->MarkInUse(node);
1132 }
1133
1134 MemPool* pool = node->_memPool;
1135 node->~XMLNode();
1136 pool->Free( node );
1137}
1138
1139void XMLNode::InsertChildPreamble( XMLNode* insertThis ) const
1140{

Callers

nothing calls this directly

Calls 5

MarkInUseMethod · 0.80
~XMLNodeMethod · 0.80
DeleteChildMethod · 0.80
SetTrackedMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected