Changeset 96757 in webkit for trunk/Source/JavaScriptCore/wtf/RetainPtr.h
- Timestamp:
- Oct 5, 2011, 3:23:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/wtf/RetainPtr.h
r83664 r96757 104 104 105 105 private: 106 static T* hashTableDeletedValue() { return reinterpret_cast<T*>(-1); }106 static PtrType hashTableDeletedValue() { return reinterpret_cast<PtrType>(-1); } 107 107 108 108 PtrType m_ptr; … … 237 237 template<typename P> struct HashTraits<RetainPtr<P> > : SimpleClassHashTraits<RetainPtr<P> > { }; 238 238 239 template<typename P> struct PtrHash<RetainPtr<P> > : PtrHash< P*> {240 using PtrHash< P*>::hash;239 template<typename P> struct PtrHash<RetainPtr<P> > : PtrHash<typename RetainPtr<P>::PtrType> { 240 using PtrHash<typename RetainPtr<P>::PtrType>::hash; 241 241 static unsigned hash(const RetainPtr<P>& key) { return hash(key.get()); } 242 using PtrHash< P*>::equal;242 using PtrHash<typename RetainPtr<P>::PtrType>::equal; 243 243 static bool equal(const RetainPtr<P>& a, const RetainPtr<P>& b) { return a == b; } 244 static bool equal( P*a, const RetainPtr<P>& b) { return a == b; }245 static bool equal(const RetainPtr<P>& a, P*b) { return a == b; }244 static bool equal(typename RetainPtr<P>::PtrType a, const RetainPtr<P>& b) { return a == b; } 245 static bool equal(const RetainPtr<P>& a, typename RetainPtr<P>::PtrType b) { return a == b; } 246 246 }; 247 247
Note:
See TracChangeset
for help on using the changeset viewer.