Changeset 12127 in webkit for trunk/JavaScriptCore/kxmlcore


Ignore:
Timestamp:
Jan 16, 2006, 12:49:46 AM (19 years ago)
Author:
darin
Message:

Reviewed by Maciej.

  • fix problem with ++, ==, and != on const iterators in HashMaps that are using the pointer specialization
  • kxmlcore/HashMapPtrSpec.h: (KXMLCore::PointerHashConstIteratorAdapter::operator++): Change type to const_iterator. (KXMLCore::PointerHashConstIteratorAdapter::operator==): Ditto. (KXMLCore::PointerHashConstIteratorAdapter::operator!=): Ditto.
File:
1 edited

Legend:

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

    r11962 r12127  
    102102        PointerType operator->() const { return &(operator*()); }
    103103       
    104         iterator& operator++()
     104        const_iterator& operator++()
    105105        {
    106106            ++m_impl;
     
    111111       
    112112        // Comparison.
    113         bool operator==(const iterator& other) const
     113        bool operator==(const const_iterator& other) const
    114114        {
    115115            return m_impl == other.m_impl;
    116116        }
    117117       
    118         bool operator!=(const iterator& other) const
     118        bool operator!=(const const_iterator& other) const
    119119        {
    120120            return m_impl != other.m_impl;
Note: See TracChangeset for help on using the changeset viewer.