Use new wxHashTable implementation not using keyed wxList

when !WXWIN_COMPATIBILITY_24. It is faster. It is almost 100%
compatible, too, the only difference being Next() return value
type.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2004-05-01 20:59:17 +00:00
parent 066f177ced
commit 6e86701b83
3 changed files with 26 additions and 16 deletions

View File

@@ -34,7 +34,7 @@
#include "wx/hash.h"
#if !wxUSE_STL
#if wxUSE_OLD_HASH_TABLE
#include <string.h>
#include <stdarg.h>
@@ -724,9 +724,7 @@ void wxHashTable::Clear ()
m_count = 0;
}
#else // if wxUSE_STL
#include "wx/object.h"
#else // if !wxUSE_OLD_HASH_TABLE
wxHashTableBase_Node::wxHashTableBase_Node( long key, void* value,
wxHashTableBase* table )
@@ -1083,4 +1081,4 @@ wxHashTable::Node* wxHashTable::Next()
return m_curr;
}
#endif // wxUSE_STL
#endif // !wxUSE_OLD_HASH_TABLE