diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/layout/RowLayout.d @ 9:950d84783eac

Removing direct tango deps.
author Frank Benoit <benoit@tionex.de>
date Mon, 09 Mar 2009 14:26:40 +0100
parents 6bf2837c50fe
children
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/layout/RowLayout.d	Thu Mar 05 15:12:35 2009 +0100
+++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/layout/RowLayout.d	Mon Mar 09 14:26:40 2009 +0100
@@ -19,7 +19,6 @@
 import org.eclipse.swt.widgets.Layout;
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.layout.RowData;
-import tango.util.Convert;
 import java.lang.all;
 
 
@@ -497,17 +496,17 @@
 override public String toString () {
     String string = getName ()~" {";
     string ~= "type="~((type !is SWT.HORIZONTAL) ? "SWT.VERTICAL" : "SWT.HORIZONTAL")~" ";
-    if (marginWidth !is 0) string ~= "marginWidth="~to!(String)(marginWidth)~" ";
-    if (marginHeight !is 0) string ~= "marginHeight="~to!(String)(marginHeight)~" ";
-    if (marginLeft !is 0) string ~= "marginLeft="~to!(String)(marginLeft)~" ";
-    if (marginTop !is 0) string ~= "marginTop="~to!(String)(marginTop)~" ";
-    if (marginRight !is 0) string ~= "marginRight="~to!(String)(marginRight)~" ";
-    if (marginBottom !is 0) string ~= "marginBottom="~to!(String)(marginBottom)~" ";
-    if (spacing !is 0) string ~= "spacing="~to!(String)(spacing)~" ";
-    string ~= "wrap="~to!(String)(wrap)~" ";
-    string ~= "pack="~to!(String)(pack)~" ";
-    string ~= "fill="~to!(String)(fill)~" ";
-    string ~= "justify="~to!(String)(justify)~" ";
+    if (marginWidth !is 0) string ~= "marginWidth="~String_valueOf(marginWidth)~" ";
+    if (marginHeight !is 0) string ~= "marginHeight="~String_valueOf(marginHeight)~" ";
+    if (marginLeft !is 0) string ~= "marginLeft="~String_valueOf(marginLeft)~" ";
+    if (marginTop !is 0) string ~= "marginTop="~String_valueOf(marginTop)~" ";
+    if (marginRight !is 0) string ~= "marginRight="~String_valueOf(marginRight)~" ";
+    if (marginBottom !is 0) string ~= "marginBottom="~String_valueOf(marginBottom)~" ";
+    if (spacing !is 0) string ~= "spacing="~String_valueOf(spacing)~" ";
+    string ~= "wrap="~String_valueOf(wrap)~" ";
+    string ~= "pack="~String_valueOf(pack)~" ";
+    string ~= "fill="~String_valueOf(fill)~" ";
+    string ~= "justify="~String_valueOf(justify)~" ";
     string = string.trim();
     string ~= "}";
     return string;