Changeset 95090 in webkit
- Timestamp:
- Sep 14, 2011 7:20:45 AM (13 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r95060 r95090 1 2011-09-14 Iain Merrick <husky@google.com> 2 3 HashTraits.h should include template specialization for WTF::String 4 https://bugs.webkit.org/show_bug.cgi?id=67851 5 6 Ensure that the template specialization for HashTraits<String> is always 7 picked up. (Previously it was possible to include HashSet and String but 8 not the correct HashTraits, so you would get an inefficient template 9 instantiation.) 10 11 Reviewed by Darin Adler. 12 13 * wtf/HashTraits.h: 14 * wtf/text/StringHash.h: 15 1 16 2011-09-13 Filip Pizlo <fpizlo@apple.com> 2 17 -
trunk/Source/JavaScriptCore/wtf/HashTraits.h
r93990 r95090 28 28 29 29 namespace WTF { 30 31 class String; 30 32 31 33 using std::pair; … … 90 92 91 93 template<typename P> struct HashTraits<RefPtr<P> > : SimpleClassHashTraits<RefPtr<P> > { }; 94 template<> struct HashTraits<String> : SimpleClassHashTraits<String> { }; 92 95 93 96 // special traits for pairs, helpful for their use in HashMap implementation -
trunk/Source/JavaScriptCore/wtf/text/StringHash.h
r88355 r95090 180 180 }; 181 181 182 template<> struct HashTraits<String> : SimpleClassHashTraits<String> { };183 184 182 } 185 183
Note: See TracChangeset
for help on using the changeset viewer.