Mercurial > projects > dwt-mac
diff dwt/widgets/ToolBar.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 | d8635bb48c7c |
line wrap: on
line diff
--- a/dwt/widgets/ToolBar.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/widgets/ToolBar.d Wed Aug 27 14:30:35 2008 +0200 @@ -127,7 +127,7 @@ } void createHandle () { - SWTView widget = (SWTView)new SWTView().alloc(); + SWTView widget = cast(SWTView)new SWTView().alloc(); widget.initWithFrame(new NSRect()); // widget.setDrawsBackground(false); widget.setTag(jniRef); @@ -183,7 +183,7 @@ public Rectangle getClientArea () { checkWidget(); NSRect rect = view.bounds(); - return new Rectangle((int)rect.x, (int)rect.y, (int)rect.width, (int)rect.height); + return new Rectangle(cast(int)rect.x, cast(int)rect.y, cast(int)rect.width, cast(int)rect.height); } /**