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

Method MarkInUse

deps/tinyxml2/tinyxml2.cpp:2104–2115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2102
2103
2104void XMLDocument::MarkInUse(XMLNode* node)
2105{
2106 TIXMLASSERT(node);
2107 TIXMLASSERT(node->_parent == 0);
2108
2109 for (int i = 0; i < _unlinked.Size(); ++i) {
2110 if (node == _unlinked[i]) {
2111 _unlinked.SwapRemove(i);
2112 break;
2113 }
2114 }
2115}
2116
2117void XMLDocument::Clear()
2118{

Callers 2

DeleteNodeMethod · 0.80
InsertChildPreambleMethod · 0.80

Calls 2

SwapRemoveMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected