Mercurial > projects > dwt-mac
diff dwt/layout/FillLayout.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/layout/FillLayout.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/layout/FillLayout.d Wed Aug 27 14:30:35 2008 +0200 @@ -144,7 +144,7 @@ } Point computeChildSize (Control control, int wHint, int hHint, bool flushCache) { - FillData data = (FillData)control.getLayoutData (); + FillData data = cast(FillData)control.getLayoutData (); if (data is null) { data = new FillData (); control.setLayoutData (data); @@ -156,7 +156,7 @@ // TEMPORARY CODE int trimX, trimY; if (control instanceof Scrollable) { - Rectangle rect = ((Scrollable) control).computeTrim (0, 0, 0, 0); + Rectangle rect = (cast(Scrollable) control).computeTrim (0, 0, 0, 0); trimX = rect.width; trimY = rect.height; } else { @@ -171,7 +171,7 @@ protected bool flushCache (Control control) { Object data = control.getLayoutData(); - if (data !is null) ((FillData)data).flushCache(); + if (data !is null) (cast(FillData)data).flushCache(); return true; }