axeld+bonefish: Got rid of the ParentType in the HashTableDefinition; it doesn't really
belong there. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21766 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -5,15 +5,15 @@
|
||||
* Authors:
|
||||
* Hugo Santos, [email protected]
|
||||
*/
|
||||
#ifndef _KERNEL_UTIL_MULTI_HASH_TABLE_H
|
||||
#define _KERNEL_UTIL_MULTI_HASH_TABLE_H
|
||||
|
||||
|
||||
#ifndef _MULTI_HASH_TABLE_H_
|
||||
#define _MULTI_HASH_TABLE_H_
|
||||
|
||||
#include <KernelExport.h>
|
||||
#include <util/kernel_cpp.h>
|
||||
#include <util/OpenHashTable.h>
|
||||
|
||||
|
||||
// MultiHashTable is a container which acts a bit like multimap<>
|
||||
// but with hash table semantics.
|
||||
|
||||
@@ -34,9 +34,9 @@ public:
|
||||
MultiHashTable(size_t initialSize = HashTable::kMinimumSize)
|
||||
: HashTable(initialSize) {}
|
||||
|
||||
MultiHashTable(typename Definition::ParentType *parent,
|
||||
MultiHashTable(const Definition& definition,
|
||||
size_t initialSize = HashTable::kMinimumSize)
|
||||
: HashTable(parent, initialSize) {}
|
||||
: HashTable(definition, initialSize) {}
|
||||
|
||||
status_t InitCheck() const { return HashTable::InitCheck(); }
|
||||
|
||||
@@ -174,4 +174,4 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif // _KERNEL_UTIL_MULTI_HASH_TABLE_H
|
||||
|
||||
Reference in New Issue
Block a user