diff dwt/dnd/RTFTransfer.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/RTFTransfer.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/dnd/RTFTransfer.d	Mon May 05 00:12:38 2008 +0200
@@ -41,7 +41,7 @@
 public class RTFTransfer : ByteArrayTransfer {
 
     private static RTFTransfer _instance;
-    private static const char[] CF_RTF = "Rich Text Format"; //$NON-NLS-1$
+    private static const String CF_RTF = "Rich Text Format"; //$NON-NLS-1$
     private static const int CF_RTFID;
 
 static this(){
@@ -80,7 +80,7 @@
         DND.error(DND.ERROR_INVALID_DATA);
     }
     // CF_RTF is stored as a null terminated byte array
-    char[] string = (cast(ArrayWrapperString)object).array;
+    String string = (cast(ArrayWrapperString)object).array;
     wchar* chars = StrToWCHARz(string);
     int codePage = OS.GetACP();
     int cchMultiByte = OS.WideCharToMultiByte(codePage, 0, chars, -1, null, 0, null, null);
@@ -142,7 +142,7 @@
     return [CF_RTFID];
 }
 
-protected char[][] getTypeNames(){
+protected String[] getTypeNames(){
     return [CF_RTF];
 }