MCPcopy Create free account
hub / github.com/Norbyte/bg3se / DeleteNode

Method DeleteNode

BG3Extender/Extender/Shared/tinyxml2.cpp:1156–1169  ·  view source on GitHub ↗

static*/

Source from the content-addressed store, hash-verified

1154}
1155
1156/*static*/ void XMLNode::DeleteNode( XMLNode* node )
1157{
1158 if ( node == 0 ) {
1159 return;
1160 }
1161 TIXMLASSERT(node->_document);
1162 if (!node->ToDocument()) {
1163 node->_document->MarkInUse(node);
1164 }
1165
1166 MemPool* pool = node->_memPool;
1167 node->~XMLNode();
1168 pool->Free( node );
1169}
1170
1171void XMLNode::InsertChildPreamble( XMLNode* insertThis ) const
1172{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected