diff options
author | Lee Thomason <leethomason@gmail.com> | 2018-08-25 21:04:13 +0300 |
---|---|---|
committer | Lee Thomason <leethomason@gmail.com> | 2018-08-25 21:04:13 +0300 |
commit | c07409b5c353621184d57042f4759b675912fc70 (patch) | |
tree | 32bd5fc071c18ce680edd7b88c0f40a345d39b71 | |
parent | 3be5d2b74b458033e5361994569347d262cbcdfa (diff) |
remove virtual call in destruction
-rwxr-xr-x | tinyxml2.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -334,7 +334,6 @@ public: virtual void* Alloc() = 0;
virtual void Free( void* ) = 0;
virtual void SetTracked() = 0;
- virtual void Clear() = 0;
};
@@ -347,7 +346,7 @@ class MemPoolT : public MemPool public:
MemPoolT() : _blockPtrs(), _root(0), _currentAllocs(0), _nAllocs(0), _maxAllocs(0), _nUntracked(0) {}
~MemPoolT() {
- Clear();
+ MemPoolT< ITEM_SIZE >::Clear();
}
void Clear() {
|