diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/TextTransfer.d @ 43:b98647bc0aef

swt win compiles for d2+phobos
author Frank Benoit <benoit@tionex.de>
date Wed, 25 Mar 2009 17:08:05 +0100
parents 4c0057e71936
children
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/TextTransfer.d	Wed Mar 25 16:13:14 2009 +0100
+++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/dnd/TextTransfer.d	Wed Mar 25 17:08:05 2009 +0100
@@ -77,10 +77,10 @@
         DND.error(DND.ERROR_INVALID_DATA);
     }
     transferData.result = COM.E_FAIL;
-    String string = (cast(ArrayWrapperString)object).array;
+    String string = stringcast(object);
     switch (transferData.type) {
         case COM.CF_UNICODETEXT: {
-            wchar[] chars = StrToWCHARs(0,string, true);
+            String16 chars = StrToWCHARs(0,string, true);
             int charCount = chars.length;
             int byteCount = chars.length * 2;
             auto newPtr = OS.GlobalAlloc(COM.GMEM_FIXED | COM.GMEM_ZEROINIT, byteCount);
@@ -93,7 +93,7 @@
             break;
         }
         case COM.CF_TEXT: {
-            wchar[] chars = StrToWCHARs(0,string, true);
+            String16 chars = StrToWCHARs(0,string, true);
             int count = chars.length;
             int codePage = OS.GetACP();
             int cchMultiByte = OS.WideCharToMultiByte(codePage, 0, chars.ptr, -1, null, 0, null, null);