Merge "libutils: give BasicHashtableImpl a virtual destructor"
This commit is contained in:
commit
a49a4a2e55
@ -52,6 +52,7 @@ protected:
|
|||||||
BasicHashtableImpl(size_t entrySize, bool hasTrivialDestructor,
|
BasicHashtableImpl(size_t entrySize, bool hasTrivialDestructor,
|
||||||
size_t minimumInitialCapacity, float loadFactor);
|
size_t minimumInitialCapacity, float loadFactor);
|
||||||
BasicHashtableImpl(const BasicHashtableImpl& other);
|
BasicHashtableImpl(const BasicHashtableImpl& other);
|
||||||
|
virtual ~BasicHashtableImpl();
|
||||||
|
|
||||||
void dispose();
|
void dispose();
|
||||||
|
|
||||||
|
@ -42,6 +42,10 @@ BasicHashtableImpl::BasicHashtableImpl(const BasicHashtableImpl& other) :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BasicHashtableImpl::~BasicHashtableImpl()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
void BasicHashtableImpl::dispose() {
|
void BasicHashtableImpl::dispose() {
|
||||||
if (mBuckets) {
|
if (mBuckets) {
|
||||||
releaseBuckets(mBuckets, mBucketCount);
|
releaseBuckets(mBuckets, mBucketCount);
|
||||||
|
Loading…
Reference in New Issue
Block a user