Mercurial > projects > dwt-linux
diff dwt/widgets/IME.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/IME.d Sun Jun 08 15:11:48 2008 +0200 +++ b/dwt/widgets/IME.d Sun Jun 15 22:32:20 2008 +0200 @@ -116,7 +116,7 @@ if (textPtr !is null && inComposition) { int length = OS.strlen (textPtr); if (length !is 0) { - char [] chars = tango.stdc.stringz.fromStringz(textPtr).dup; + char [] chars = fromStringz(textPtr).dup; Event event = new Event(); event.detail = DWT.COMPOSITION_CHANGED; event.start = startOffset; @@ -148,7 +148,7 @@ char [] chars = null; if (preeditString !is null) { int length = OS.strlen (preeditString); - chars = tango.stdc.stringz.fromStringz(preeditString).dup; + chars = fromStringz(preeditString).dup; if (pangoAttrs !is null) { int count = 0; auto iterator = OS.pango_attr_list_get_iterator (pangoAttrs );