diff dwt/widgets/TrayItem.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 db5a898b2119
line wrap: on
line diff
--- a/dwt/widgets/TrayItem.d	Wed Aug 27 14:10:03 2008 +0200
+++ b/dwt/widgets/TrayItem.d	Wed Aug 27 14:30:35 2008 +0200
@@ -164,7 +164,7 @@
     item.retain();
     item.setHighlightMode(true);    
     NSRect rect = new NSRect();
-    view = (NSImageView)new SWTImageView().alloc();
+    view = cast(NSImageView)new SWTImageView().alloc();
     if (view is null) error (DWT.ERROR_NO_HANDLES);
     view.initWithFrame(rect);
     item.setView(view);
@@ -185,7 +185,7 @@
     pt.y = rect.height;
     pt = view.convertPoint_fromView_(pt, null);
     pt.x += windowRect.x;
-    return new Point ((int)pt.x, (int)pt.y);
+    return new Point (cast(int)pt.x, cast(int)pt.y);
 }
 
 /**