to please gcc4
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21811 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
84324de507
commit
acbe544d74
|
@ -192,8 +192,8 @@ protected:
|
||||||
template<typename Key, typename Value>
|
template<typename Key, typename Value>
|
||||||
class SynchronizedHashMap : public BLocker {
|
class SynchronizedHashMap : public BLocker {
|
||||||
public:
|
public:
|
||||||
typedef HashMap<Key, Value>::Entry Entry;
|
typedef struct HashMap<Key, Value>::Entry Entry;
|
||||||
typedef HashMap<Key, Value>::Iterator Iterator;
|
typedef struct HashMap<Key, Value>::Iterator Iterator;
|
||||||
|
|
||||||
SynchronizedHashMap() : BLocker("synchronized hash map") {}
|
SynchronizedHashMap() : BLocker("synchronized hash map") {}
|
||||||
~SynchronizedHashMap() { Lock(); }
|
~SynchronizedHashMap() { Lock(); }
|
||||||
|
@ -422,7 +422,7 @@ HashMap<Key, Value>::Size() const
|
||||||
|
|
||||||
// GetIterator
|
// GetIterator
|
||||||
template<typename Key, typename Value>
|
template<typename Key, typename Value>
|
||||||
HashMap<Key, Value>::Iterator
|
struct HashMap<Key, Value>::Iterator
|
||||||
HashMap<Key, Value>::GetIterator() const
|
HashMap<Key, Value>::GetIterator() const
|
||||||
{
|
{
|
||||||
return Iterator(this);
|
return Iterator(this);
|
||||||
|
@ -430,7 +430,7 @@ HashMap<Key, Value>::GetIterator() const
|
||||||
|
|
||||||
// _FindElement
|
// _FindElement
|
||||||
template<typename Key, typename Value>
|
template<typename Key, typename Value>
|
||||||
HashMap<Key, Value>::Element *
|
struct HashMap<Key, Value>::Element *
|
||||||
HashMap<Key, Value>::_FindElement(const Key& key) const
|
HashMap<Key, Value>::_FindElement(const Key& key) const
|
||||||
{
|
{
|
||||||
Element* element = fTable.FindFirst(key.GetHashCode());
|
Element* element = fTable.FindFirst(key.GetHashCode());
|
||||||
|
|
Loading…
Reference in New Issue