Ignore:
Timestamp:
Jan 31, 2006, 8:33:27 PM (19 years ago)
Author:
darin
Message:

Reviewed by Maciej.

  • added deleteAllValues for HashSet as well as HashMap
  • fixed conversion from const_iterator to iterator, which I broke a while back
  • kxmlcore/HashMap.h: Updated copyright date.
  • kxmlcore/HashSet.h: (KXMLCore::deleteAllValues): Added.
  • kxmlcore/HashTable.h: (KXMLCore::HashTableIterator::operator const_iterator): Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kxmlcore/HashTable.h

    r12328 r12511  
    111111        }
    112112
    113         HashTableConstIterator(const iterator& other)
    114             : m_position(other.m_position), m_endPosition(other.m_endPosition)
    115         {
    116 #if CHECK_HASHTABLE_ITERATORS
    117             addIterator(other.m_table, this);
    118 #endif
    119         }
    120 
    121113        // default copy, assignment and destructor are OK if CHECK_HASHTABLE_ITERATORS is 0
    122114
     
    232224        bool operator==(const iterator& other) const { return m_iterator == other.m_iterator; }
    233225        bool operator!=(const iterator& other) const { return m_iterator != other.m_iterator; }
     226
     227        operator const_iterator() const { return m_iterator; }
    234228
    235229    private:
Note: See TracChangeset for help on using the changeset viewer.