Mercurial > projects > dwt-mac
comparison dwt/graphics/Region.d @ 8:a9ab4c738ed8
Fix: instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:32:39 +0200 |
parents | e831403a80a9 |
children | 5123b17c98ef |
comparison
equal
deleted
inserted
replaced
7:e831403a80a9 | 8:a9ab4c738ed8 |
---|---|
296 * | 296 * |
297 * @see #hashCode | 297 * @see #hashCode |
298 */ | 298 */ |
299 public bool equals(Object object) { | 299 public bool equals(Object object) { |
300 if (this is object) return true; | 300 if (this is object) return true; |
301 if (!(object instanceof Region)) return false; | 301 if (!( null !is cast(Region)object )) return false; |
302 Region region = cast(Region)object; | 302 Region region = cast(Region)object; |
303 return handle is region.handle; | 303 return handle is region.handle; |
304 } | 304 } |
305 | 305 |
306 /** | 306 /** |