| Index: Source/wtf/text/AtomicStringHash.h
|
| diff --git a/Source/wtf/text/AtomicStringHash.h b/Source/wtf/text/AtomicStringHash.h
|
| index d9ecbdbb7fcae171be7fbcfd2bcd7467d4b865d2..d86d22f6be03895f668612f3144cac0a08125694 100644
|
| --- a/Source/wtf/text/AtomicStringHash.h
|
| +++ b/Source/wtf/text/AtomicStringHash.h
|
| @@ -49,16 +49,15 @@ namespace WTF {
|
| };
|
|
|
| // AtomicStringHash is the default hash for AtomicString
|
| - template<> struct HashTraits<WTF::AtomicString> : GenericHashTraits<WTF::AtomicString> {
|
| + template<> struct HashTraits<AtomicString> : SimpleClassHashTraits<AtomicString> {
|
| // Unlike other types, we can return a const reference for AtomicString's empty value (nullAtom).
|
| - typedef const WTF::AtomicString& PeekOutType;
|
| + typedef const AtomicString& PeekOutType;
|
|
|
| - static const WTF::AtomicString& emptyValue() { return nullAtom; }
|
| - static PeekOutType peek(const WTF::AtomicString& value) { return value; }
|
| + static const AtomicString& emptyValue() { return nullAtom; }
|
| + static PeekOutType peek(const AtomicString& value) { return value; }
|
|
|
| - static const bool emptyValueIsZero = true;
|
| - static void constructDeletedValue(WTF::AtomicString& slot, bool) { new (NotNull, &slot) WTF::AtomicString(HashTableDeletedValue); }
|
| - static bool isDeletedValue(const WTF::AtomicString& slot) { return slot.isHashTableDeletedValue(); }
|
| + static const bool hasIsEmptyValueFunction = true;
|
| + static bool isEmptyValue(const AtomicString& value) { return value.isNull(); }
|
| };
|
|
|
| }
|
|
|