diff dwt/dnd/FileTransfer.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/dnd/FileTransfer.d	Sun Jun 08 15:11:48 2008 +0200
+++ b/dwt/dnd/FileTransfer.d	Sun Jun 15 22:32:20 2008 +0200
@@ -89,7 +89,7 @@
         auto uriPtr = OS.g_filename_to_uri(localePtr, null, &error);
         OS.g_free(localePtr);
         if (error !is null || uriPtr is null) continue;
-        String temp = tango.stdc.stringz.fromStringz( uriPtr ).dup;
+        String temp = fromStringz( uriPtr ).dup;
         OS.g_free(uriPtr);
         int newLength = (i > 0) ? buffer.length+separator.length+temp.length :  temp.length;
         String newBuffer = new char[newLength];
@@ -162,7 +162,7 @@
         auto utf8Ptr = OS.g_filename_to_utf8(localePtr, -1, null, null, &error);
         OS.g_free(localePtr);
         if (error !is null || utf8Ptr is null) continue;
-        String buffer = tango.stdc.stringz.fromStringz( utf8Ptr ).dup;
+        String buffer = fromStringz( utf8Ptr ).dup;
         OS.g_free(utf8Ptr);
         String name = buffer;
         String[] newFileNames = new String[]( fileNames.length + 1 );