Mercurial > projects > dwt-linux
diff dwt/widgets/Control.d @ 255:5a30aa9820f3
removed tango.stdc.stringz imports and allow null for arrays and string arguments.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 15 Jun 2008 22:32:20 +0200 |
parents | ce446666f5a2 |
children | c0d810de7093 |
line wrap: on
line diff
--- a/dwt/widgets/Control.d Sun Jun 08 15:11:48 2008 +0200 +++ b/dwt/widgets/Control.d Sun Jun 15 22:32:20 2008 +0200 @@ -57,7 +57,6 @@ import dwt.accessibility.Accessible; import Math = tango.math.Math; -import tango.stdc.stringz; import tango.core.Thread; import tango.io.Stdout; @@ -2596,7 +2595,7 @@ char* buffer = null; if (toolTipText !is null && toolTipText.length !is 0) { char [] chars = fixMnemonic (toolTipText, false); - buffer = tango.stdc.stringz.toStringz(chars); + buffer = toStringz(chars); } auto toolHandle = getShell().handle; OS.gtk_widget_set_tooltip_text (toolHandle, buffer);