IMPLEMENT_DYNAMIC_CLASS(wxHashTable, wxObject)
#endif
-wxHashTable::wxHashTable (const int the_key_type, const int size)
+wxHashTable::wxHashTable (int the_key_type, int size)
{
n = size;
current_position = -1;
delete[] hash_table;
}
-bool wxHashTable::Create(const int the_key_type, const int size)
+bool wxHashTable::Create(int the_key_type, int size)
{
n = size;
current_position = -1;
return TRUE;
}
-void wxHashTable::Put (const long key, const long value, wxObject * object)
+void wxHashTable::Put (long key, long value, wxObject * object)
{
// Should NEVER be
long k = (long) key;
hash_table[position]->Append (value, object);
}
-void wxHashTable::Put (const long key, const char *value, wxObject * object)
+void wxHashTable::Put (long key, const char *value, wxObject * object)
{
// Should NEVER be
long k = (long) key;
hash_table[position]->Append (value, object);
}
-void wxHashTable::Put (const long key, wxObject * object)
+void wxHashTable::Put (long key, wxObject * object)
{
// Should NEVER be
long k = (long) key;
hash_table[position]->Append (key, object);
}
-wxObject *wxHashTable::Get (const long key, const long value) const
+wxObject *wxHashTable::Get (long key, long value) const
{
// Should NEVER be
long k = (long) key;
}
}
-wxObject *wxHashTable::Get (const long key, const char *value) const
+wxObject *wxHashTable::Get (long key, const char *value) const
{
// Should NEVER be
long k = (long) key;
}
}
-wxObject *wxHashTable::Get (const long key) const
+wxObject *wxHashTable::Get (long key) const
{
// Should NEVER be
long k = (long) key;
}
}
-wxObject *wxHashTable::Delete (const long key)
+wxObject *wxHashTable::Delete (long key)
{
// Should NEVER be
long k = (long) key;
}
}
-wxObject *wxHashTable::Delete (const long key, const int value)
+wxObject *wxHashTable::Delete (long key, int value)
{
// Should NEVER be
long k = (long) key;
}
}
-wxObject *wxHashTable::Delete (const long key, const char *value)
+wxObject *wxHashTable::Delete (long key, const char *value)
{
int position = (int) (key % n);
if (!hash_table[position])
return found;
}
-void wxHashTable::DeleteContents (const bool flag)
+void wxHashTable::DeleteContents (bool flag)
{
int i;
for (i = 0; i < n; i++)