HashSet.h: Replace whatever that was with proper C++

This commit is contained in:
Jonathan Schleifer 2013-12-17 18:15:54 +01:00 committed by Adrien Destugues
parent a7d796e232
commit 724947ebca
1 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ protected:
template<typename Key> template<typename Key>
class SynchronizedHashSet : public BLocker { class SynchronizedHashSet : public BLocker {
public: public:
typedef struct HashSet<Key>::Iterator Iterator; typedef typename HashSet<Key>::Iterator Iterator;
SynchronizedHashSet() : BLocker("synchronized hash set") {} SynchronizedHashSet() : BLocker("synchronized hash set") {}
~SynchronizedHashSet() { Lock(); } ~SynchronizedHashSet() { Lock(); }
@ -313,7 +313,7 @@ HashSet<Key>::Size() const
// GetIterator // GetIterator
template<typename Key> template<typename Key>
struct HashSet<Key>::Iterator typename HashSet<Key>::Iterator
HashSet<Key>::GetIterator() HashSet<Key>::GetIterator()
{ {
return Iterator(this); return Iterator(this);
@ -321,7 +321,7 @@ HashSet<Key>::GetIterator()
// _FindElement // _FindElement
template<typename Key> template<typename Key>
struct HashSet<Key>::Element * HashSetElement<Key> *
HashSet<Key>::_FindElement(const Key& key) const HashSet<Key>::_FindElement(const Key& key) const
{ {
Element* element = fTable.FindFirst(key.GetHashCode()); Element* element = fTable.FindFirst(key.GetHashCode());