diff dwt/dnd/TextTransfer.d @ 212:ab60f3309436

reverted the char[] to String and use the an alias.
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:12:38 +0200
parents 184ab53b7785
children e2affbeb686d
line wrap: on
line diff
--- a/dwt/dnd/TextTransfer.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/dnd/TextTransfer.d	Mon May 05 00:12:38 2008 +0200
@@ -41,8 +41,8 @@
 public class TextTransfer : ByteArrayTransfer {
 
     private static TextTransfer _instance;
-    private static const char[] CF_UNICODETEXT = "CF_UNICODETEXT"; //$NON-NLS-1$
-    private static const char[] CF_TEXT = "CF_TEXT"; //$NON-NLS-1$
+    private static const String CF_UNICODETEXT = "CF_UNICODETEXT"; //$NON-NLS-1$
+    private static const String CF_TEXT = "CF_TEXT"; //$NON-NLS-1$
     private static const int CF_UNICODETEXTID = COM.CF_UNICODETEXT;
     private static const int CF_TEXTID = COM.CF_TEXT;
 
@@ -79,7 +79,7 @@
         DND.error(DND.ERROR_INVALID_DATA);
     }
     transferData.result = COM.E_FAIL;
-    char[] string = (cast(ArrayWrapperString)object).array;
+    String string = (cast(ArrayWrapperString)object).array;
     switch (transferData.type) {
         case COM.CF_UNICODETEXT: {
             wchar[] chars = StrToWCHARs(0,string, true);
@@ -188,7 +188,7 @@
     return [CF_UNICODETEXTID, CF_TEXTID];
 }
 
-protected char[][] getTypeNames(){
+protected String[] getTypeNames(){
     return [CF_UNICODETEXT, CF_TEXT];
 }