Changeset 38391 in webkit for trunk/JavaScriptCore/wtf/RefPtr.h
- Timestamp:
- Nov 14, 2008, 9:53:59 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/wtf/RefPtr.h
r35900 r38391 63 63 64 64 // This conversion operator allows implicit conversion to bool but not to other integer types. 65 #if COMPILER(WINSCW) 66 operator bool() const { return m_ptr; } 67 #else 65 68 typedef T* RefPtr::*UnspecifiedBoolType; 66 69 operator UnspecifiedBoolType() const { return m_ptr ? &RefPtr::m_ptr : 0; } 70 #endif 67 71 68 72 RefPtr& operator=(const RefPtr&);
Note:
See TracChangeset
for help on using the changeset viewer.