Mercurial > projects > dwt-mac
comparison dwt/graphics/Cursor.d @ 8:a9ab4c738ed8
Fix: instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:32:39 +0200 |
parents | e831403a80a9 |
children | 7d135fe0caf2 |
comparison
equal
deleted
inserted
replaced
7:e831403a80a9 | 8:a9ab4c738ed8 |
---|---|
345 * | 345 * |
346 * @see #hashCode | 346 * @see #hashCode |
347 */ | 347 */ |
348 public bool equals (Object object) { | 348 public bool equals (Object object) { |
349 if (object is this) return true; | 349 if (object is this) return true; |
350 if (!(object instanceof Cursor)) return false; | 350 if (!( null !is cast(Cursor)object )) return false; |
351 Cursor cursor = cast(Cursor) object; | 351 Cursor cursor = cast(Cursor) object; |
352 return device is cursor.device && handle is cursor.handle; | 352 return device is cursor.device && handle is cursor.handle; |
353 } | 353 } |
354 | 354 |
355 /** | 355 /** |