diff dwt/graphics/Rectangle.d @ 7:e831403a80a9

Add 'cast' to casts
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:30:35 +0200
parents 1a8b3cb347e0
children a9ab4c738ed8
line wrap: on
line diff
--- a/dwt/graphics/Rectangle.d	Wed Aug 27 14:10:03 2008 +0200
+++ b/dwt/graphics/Rectangle.d	Wed Aug 27 14:30:35 2008 +0200
@@ -153,7 +153,7 @@
 public bool equals (Object object) {
     if (object is this) return true;
     if (!(object instanceof Rectangle)) return false;
-    Rectangle r = (Rectangle)object;
+    Rectangle r = cast(Rectangle)object;
     return (r.x is this.x) && (r.y is this.y) && (r.width is this.width) && (r.height is this.height);
 }