Changeset 37712 in webkit for trunk/JavaScriptCore/kjs/JSValue.h
- Timestamp:
- Oct 19, 2008, 10:58:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/JSValue.h
r37706 r37712 151 151 }; 152 152 153 bool operator==(JSValuePtr, JSValuePtr); 154 bool operator!=(JSValuePtr, JSValuePtr); 155 153 156 // These are identical logic to the JSValue functions above, and faster than jsNumber(number)->toInt32(). 154 157 int32_t toInt32(double); … … 167 170 inline JSValuePtr JSValue::asValue() const 168 171 { 169 return const_cast<JSValue Ptr>(this);172 return const_cast<JSValue*>(this); 170 173 } 171 174 … … 261 264 } 262 265 266 inline bool operator==(JSValuePtr a, JSValuePtr b) 267 { 268 return a.payload() == b.payload(); 269 } 270 271 inline bool operator!=(JSValuePtr a, JSValuePtr b) 272 { 273 return a.payload() != b.payload(); 274 } 275 263 276 } // namespace JSC 264 277
Note:
See TracChangeset
for help on using the changeset viewer.