Changeset 11739 in webkit for trunk/JavaScriptCore/kxmlcore/HashFunctions.h
- Timestamp:
- Dec 22, 2005, 5:52:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kxmlcore/HashFunctions.h
r11561 r11739 25 25 26 26 #include <stdint.h> 27 28 #include "RefPtr.h" 27 29 28 30 namespace KXMLCore { … … 73 75 static bool equal(T a, T b) { return a == b; } 74 76 }; 77 78 template<typename P> struct PointerHash<RefPtr<P> > { 79 static unsigned hash(const RefPtr<P>& key) { return pointerHash<sizeof(void *)>((void *)key.get()); } 80 static bool equal(const RefPtr<P>& a, const RefPtr<P>& b) { return a == b; } 81 }; 75 82 76 83 } // namespace KXMLCore
Note:
See TracChangeset
for help on using the changeset viewer.