Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Thomason <leethomason@gmail.com>2018-08-25 21:04:13 +0300
committerLee Thomason <leethomason@gmail.com>2018-08-25 21:04:13 +0300
commitc07409b5c353621184d57042f4759b675912fc70 (patch)
tree32bd5fc071c18ce680edd7b88c0f40a345d39b71
parent3be5d2b74b458033e5361994569347d262cbcdfa (diff)
remove virtual call in destruction
-rwxr-xr-xtinyxml2.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tinyxml2.h b/tinyxml2.h
index a09bd5b..f91803b 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -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() {