Fix for pure virtual method call caused by wxHashTable not
overriding virtual destructor. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -159,7 +159,7 @@ public:
|
||||
typedef wxHashTableBase_Node Node;
|
||||
|
||||
wxHashTableBase();
|
||||
virtual ~wxHashTableBase();
|
||||
virtual ~wxHashTableBase() { };
|
||||
|
||||
void Create( wxKeyType keyType = wxKEY_INTEGER,
|
||||
size_t size = wxHASH_SIZE_DEFAULT );
|
||||
@@ -344,6 +344,8 @@ public:
|
||||
: wxHashTableBase() { Create( keyType, size ); BeginFind(); }
|
||||
wxHashTable( const wxHashTable& table );
|
||||
|
||||
virtual ~wxHashTable() { Destroy(); }
|
||||
|
||||
const wxHashTable& operator=( const wxHashTable& );
|
||||
|
||||
void Destroy() { Clear(); }
|
||||
@@ -514,7 +516,7 @@ private:
|
||||
size_t size = wxHASH_SIZE_DEFAULT) \
|
||||
: wxHashTableBase() { Create(keyType, size); } \
|
||||
\
|
||||
~hashclass() { Destroy(); } \
|
||||
virtual ~hashclass() { Destroy(); } \
|
||||
\
|
||||
void Destroy() { Clear(); } \
|
||||
void Put(long key, eltype *data) { DoPut(key, key, (void*)data); } \
|
||||
|
Reference in New Issue
Block a user