MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / DeleteNode

Method DeleteNode

native/thirdpart/tinyxml2/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 2

append_elementFunction · 0.80
insert_next_elementFunction · 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