Ticket #10325: 0002-HashSet.h-Replace-whatever-that-was-with-proper-C.patch

File 0002-HashSet.h-Replace-whatever-that-was-with-proper-C.patch, 1.3 KB (added by js, 7 years ago)
  • headers/private/shared/HashSet.h

    From 26a668213d4f62172e41f3ab5efd94371dbdc3d0 Mon Sep 17 00:00:00 2001
    From: Jonathan Schleifer <js@webkeks.org>
    Date: Tue, 17 Dec 2013 18:15:54 +0100
    Subject: [PATCH 2/6] HashSet.h: Replace whatever that was with proper C++
    
    ---
     headers/private/shared/HashSet.h | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/headers/private/shared/HashSet.h b/headers/private/shared/HashSet.h
    index ee7be71..9a102d1 100644
    a b protected:  
    179179template<typename Key>
    180180class SynchronizedHashSet : public BLocker {
    181181public:
    182     typedef struct HashSet<Key>::Iterator Iterator;
     182    typedef typename HashSet<Key>::Iterator Iterator;
    183183
    184184    SynchronizedHashSet() : BLocker("synchronized hash set")    {}
    185185    ~SynchronizedHashSet()  { Lock(); }
    HashSet<Key>::Size() const  
    313313
    314314// GetIterator
    315315template<typename Key>
    316 struct HashSet<Key>::Iterator
     316typename HashSet<Key>::Iterator
    317317HashSet<Key>::GetIterator()
    318318{
    319319    return Iterator(this);
    HashSet<Key>::GetIterator()  
    321321
    322322// _FindElement
    323323template<typename Key>
    324 struct HashSet<Key>::Element *
     324HashSetElement<Key> *
    325325HashSet<Key>::_FindElement(const Key& key) const
    326326{
    327327    Element* element = fTable.FindFirst(key.GetHashCode());