Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Device.d @ 9:950d84783eac
Removing direct tango deps.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 09 Mar 2009 14:26:40 +0100 |
parents | f36c67707cb3 |
children | 735224fcc45f |
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Device.d Thu Mar 05 15:12:35 2009 +0100 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/Device.d Mon Mar 09 14:26:40 2009 +0100 @@ -37,8 +37,6 @@ import java.lang.System; import java.lang.all; -import tango.util.Convert; -import tango.io.Stdout; /** * This class is the abstract superclass of all device objects, @@ -877,22 +875,22 @@ } if (objectCount !is 0) { String string = "Summary: "; - if (colors !is 0) string ~= to!(String)(colors) ~ " Color(s), "; - if (cursors !is 0) string ~= to!(String)(cursors) ~ " Cursor(s), "; - if (fonts !is 0) string ~= to!(String)(fonts) ~ " Font(s), "; - if (gcs !is 0) string ~= to!(String)(gcs) ~ " GC(s), "; - if (images !is 0) string ~= to!(String)(images) ~ " Image(s), "; - if (paths !is 0) string ~= to!(String)(paths) ~ " Path(s), "; - if (patterns !is 0) string ~= to!(String)(patterns) ~ " Pattern(s), "; - if (regions !is 0) string ~= to!(String)(regions) ~ " Region(s), "; - if (textLayouts !is 0) string ~= to!(String)(textLayouts) ~ " TextLayout(s), "; - if (transforms !is 0) string ~= to!(String)(transforms) ~ " Transforms(s), "; + if (colors !is 0) string ~= String_valueOf(colors) ~ " Color(s), "; + if (cursors !is 0) string ~= String_valueOf(cursors) ~ " Cursor(s), "; + if (fonts !is 0) string ~= String_valueOf(fonts) ~ " Font(s), "; + if (gcs !is 0) string ~= String_valueOf(gcs) ~ " GC(s), "; + if (images !is 0) string ~= String_valueOf(images) ~ " Image(s), "; + if (paths !is 0) string ~= String_valueOf(paths) ~ " Path(s), "; + if (patterns !is 0) string ~= String_valueOf(patterns) ~ " Pattern(s), "; + if (regions !is 0) string ~= String_valueOf(regions) ~ " Region(s), "; + if (textLayouts !is 0) string ~= String_valueOf(textLayouts) ~ " TextLayout(s), "; + if (transforms !is 0) string ~= String_valueOf(transforms) ~ " Transforms(s), "; if (string.length !is 0) { string = string.substring (0, string.length - 2); - Stderr.formatln ( "{}", string); + getDwtLogger().error ( "{}", string); } for (int i=0; i<errors.length; i++) { - if (errors [i] !is null) ExceptionPrintStackTrace( errors [i], Stderr); + if (errors [i] !is null) ExceptionPrintStackTrace( errors [i]); } } }