MCPcopy Create free account
hub / github.com/crossuo/crossuo / MarkInUse

Method MarkInUse

external/tinyxml2.cpp:2151–2162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2149
2150
2151void XMLDocument::MarkInUse(XMLNode* node)
2152{
2153 TIXMLASSERT(node);
2154 TIXMLASSERT(node->_parent == 0);
2155
2156 for (int i = 0; i < _unlinked.Size(); ++i) {
2157 if (node == _unlinked[i]) {
2158 _unlinked.SwapRemove(i);
2159 break;
2160 }
2161 }
2162}
2163
2164void XMLDocument::Clear()
2165{

Callers 2

DeleteNodeMethod · 0.80
InsertChildPreambleMethod · 0.80

Calls 2

SwapRemoveMethod · 0.80
SizeMethod · 0.45

Tested by

no test coverage detected