diff dwt/graphics/Point.d @ 8:a9ab4c738ed8

Fix: instanceof
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:32:39 +0200
parents e831403a80a9
children 965ac0a77267
line wrap: on
line diff
--- a/dwt/graphics/Point.d	Wed Aug 27 14:30:35 2008 +0200
+++ b/dwt/graphics/Point.d	Wed Aug 27 14:32:39 2008 +0200
@@ -75,7 +75,7 @@
  */
 public bool equals (Object object) {
     if (object is this) return true;
-    if (!(object instanceof Point)) return false;
+    if (!( null !is cast(Point)object )) return false;
     Point p = cast(Point)object;
     return (p.x is this.x) && (p.y is this.y);
 }