diff dwt/dnd/URLTransfer.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 36f5cb12e1a2
line wrap: on
line diff
--- a/dwt/dnd/URLTransfer.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/dnd/URLTransfer.d	Mon May 05 00:12:38 2008 +0200
@@ -45,7 +45,7 @@
 /*public*/ class URLTransfer : ByteArrayTransfer {
 
     static URLTransfer _instance;
-    static const char[] CFSTR_INETURL = "UniformResourceLocator"; //$NON-NLS-1$
+    static const String CFSTR_INETURL = "UniformResourceLocator"; //$NON-NLS-1$
     static const int CFSTR_INETURLID;
 
 static this(){
@@ -85,7 +85,7 @@
     }
     transferData.result = COM.E_FAIL;
     // URL is stored as a null terminated byte array
-    char[] url = (cast(ArrayWrapperString2)object).array[0];
+    String url = (cast(ArrayWrapperString2)object).array[0];
     int codePage = OS.GetACP();
     wchar[] chars = StrToWCHARs(codePage, url, true );
     int cchMultiByte = OS.WideCharToMultiByte(codePage, 0, chars.ptr, -1, null, 0, null, null);
@@ -147,14 +147,14 @@
     return [CFSTR_INETURLID];
 }
 
-protected char[][] getTypeNames(){
+protected String[] getTypeNames(){
     return [CFSTR_INETURL];
 }
 
 bool checkURL(Object object) {
     if( auto s = cast(ArrayWrapperString2)object ){
         if( s.array.length is 0 ) return false;
-        char[][] strings = s.array;
+        String[] strings = s.array;
         if (strings[0] is null || strings[0].length is 0) return false;
         //PORTING_FIXME: how to validata URL?
         /+try {