Fix wxHashMap::clear
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -218,7 +218,12 @@ public: \
|
||||
\
|
||||
/* removes all elements from the hash table, but does not */ \
|
||||
/* shrink it ( perhaps it should ) */ \
|
||||
void clear() { DeleteNodes( m_tableBuckets, (_wxHashTable_NodeBase**)m_table, DeleteNode ); } \
|
||||
void clear() \
|
||||
{ \
|
||||
DeleteNodes( m_tableBuckets, (_wxHashTable_NodeBase**)m_table, \
|
||||
DeleteNode ); \
|
||||
m_items = 0; \
|
||||
} \
|
||||
\
|
||||
size_type size() const { return m_items; } \
|
||||
size_type max_size() const { return size_type(-1); } \
|
||||
|
Reference in New Issue
Block a user