diff dwt/layout/FormData.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 fbe68c33eeee
line wrap: on
line diff
--- a/dwt/layout/FormData.d	Wed Aug 27 14:10:03 2008 +0200
+++ b/dwt/layout/FormData.d	Wed Aug 27 14:30:35 2008 +0200
@@ -172,7 +172,7 @@
     }
     if (bottomControl is null) return cacheBottom = bottom;
     isVisited = true;
-    FormData bottomData = (FormData) bottomControl.getLayoutData ();
+    FormData bottomData = cast(FormData) bottomControl.getLayoutData ();
     FormAttachment bottomAttachment = bottomData.getBottomAttachment (bottomControl, spacing, flushCache);
     switch (bottom.alignment) {
         case DWT.BOTTOM: 
@@ -213,7 +213,7 @@
     }
     if (leftControl is null) return cacheLeft = left;
     isVisited = true;
-    FormData leftData = (FormData) leftControl.getLayoutData ();
+    FormData leftData = cast(FormData) leftControl.getLayoutData ();
     FormAttachment leftAttachment = leftData.getLeftAttachment (leftControl, spacing, flushCache);
     switch (left.alignment) {
         case DWT.LEFT:
@@ -260,7 +260,7 @@
     }
     if (rightControl is null) return cacheRight = right;
     isVisited = true;
-    FormData rightData = (FormData) rightControl.getLayoutData ();
+    FormData rightData = cast(FormData) rightControl.getLayoutData ();
     FormAttachment rightAttachment = rightData.getRightAttachment (rightControl, spacing, flushCache);
     switch (right.alignment) {
         case DWT.RIGHT: 
@@ -301,7 +301,7 @@
     }
     if (topControl is null) return cacheTop = top;
     isVisited = true;
-    FormData topData = (FormData) topControl.getLayoutData ();
+    FormData topData = cast(FormData) topControl.getLayoutData ();
     FormAttachment topAttachment = topData.getTopAttachment (topControl, spacing, flushCache);
     switch (top.alignment) {
         case DWT.TOP: