Changeset 55068 in webkit for trunk/JavaScriptCore/wtf/HashMap.h


Ignore:
Timestamp:
Feb 21, 2010, 10:12:52 PM (15 years ago)
Author:
[email protected]
Message:

2010-02-21 Yuta Kitamura <[email protected]>

Reviewed by Darin Adler.

HashMapTranslatorAdapter::translate() needs to set the mapped value.

HTTPHeaderMap::add(const char*, const String&) does not work
https://bugs.webkit.org/show_bug.cgi?id=35227

  • wtf/HashMap.h: (WTF::HashMapTranslatorAdapter::translate):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/HashMap.h

    r53957 r55068  
    134134        static unsigned hash(const T& key) { return Translator::hash(key); }
    135135        static bool equal(const KeyType& a, const T& b) { return Translator::equal(a, b); }
    136         static void translate(ValueType& location, const T& key, const MappedType&, unsigned hashCode)
     136        static void translate(ValueType& location, const T& key, const MappedType& mapped, unsigned hashCode)
    137137        {
    138138            Translator::translate(location.first, key, hashCode);
     139            location.second = mapped;
    139140        }
    140141    };
Note: See TracChangeset for help on using the changeset viewer.