Changeset 29201 in webkit for trunk/JavaScriptCore/API/JSRetainPtr.h
- Timestamp:
- Jan 5, 2008, 6:16:32 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSRetainPtr.h
r25413 r29201 60 60 61 61 // This conversion operator allows implicit conversion to bool but not to other integer types. 62 typedef T (JSRetainPtr::*UnspecifiedBoolType)() const;63 operator UnspecifiedBoolType() const { return m_ptr ? &JSRetainPtr:: get: 0; }62 typedef T JSRetainPtr::*UnspecifiedBoolType; 63 operator UnspecifiedBoolType() const { return m_ptr ? &JSRetainPtr::m_ptr : 0; } 64 64 65 65 JSRetainPtr& operator=(const JSRetainPtr&);
Note:
See TracChangeset
for help on using the changeset viewer.