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

Method Clear

externals/tinyxml2/tinyxml2.h:351–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349 }
350
351 void Clear() {
352 // Delete the blocks.
353 while( !_blockPtrs.Empty()) {
354 Block* lastBlock = _blockPtrs.Pop();
355 delete lastBlock;
356 }
357 _root = 0;
358 _currentAllocs = 0;
359 _nAllocs = 0;
360 _maxAllocs = 0;
361 _nUntracked = 0;
362 }
363
364 virtual size_t ItemSize() const override {
365 return ITEM_SIZE;

Callers

nothing calls this directly

Calls 2

EmptyMethod · 0.80
PopMethod · 0.80

Tested by

no test coverage detected