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:
Mattia Barbon
2004-05-08 09:33:29 +00:00
parent 24ec43dbdb
commit 6aa33060cd
2 changed files with 5 additions and 8 deletions

View File

@@ -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); } \