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

Method DeleteNode

externals/tinyxml2/tinyxml2.cpp:1188–1201  ·  view source on GitHub ↗

static*/

Source from the content-addressed store, hash-verified

1186}
1187
1188/*static*/ void XMLNode::DeleteNode( XMLNode* node )
1189{
1190 if ( node == 0 ) {
1191 return;
1192 }
1193 TIXMLASSERT(node->_document);
1194 if (!node->ToDocument()) {
1195 node->_document->MarkInUse(node);
1196 }
1197
1198 MemPool* pool = node->_memPool;
1199 node->~XMLNode();
1200 pool->Free( node );
1201}
1202
1203void XMLNode::InsertChildPreamble( XMLNode* insertThis ) const
1204{

Callers 1

ParseDeepMethod · 0.80

Calls 5

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

Tested by

no test coverage detected