Mercurial > projects > dwt-win
diff dwt/dnd/FileTransfer.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 | b479f7e2f431 |
children | fd9c62a2998e |
line wrap: on
line diff
--- a/dwt/dnd/FileTransfer.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/dnd/FileTransfer.d Mon May 05 00:12:38 2008 +0200 @@ -46,9 +46,9 @@ public class FileTransfer : ByteArrayTransfer { private static FileTransfer _instance; - private static final char[] CF_HDROP = "CF_HDROP "; //$NON-NLS-1$ + private static final String CF_HDROP = "CF_HDROP "; //$NON-NLS-1$ private static final int CF_HDROPID = COM.CF_HDROP; - private static final char[] CF_HDROP_SEPARATOR = "\0"; //$NON-NLS-1$ + private static final String CF_HDROP_SEPARATOR = "\0"; //$NON-NLS-1$ private this() {} @@ -84,7 +84,7 @@ if (!checkFile(object) || !isSupportedType(transferData)) { DND.error(DND.ERROR_INVALID_DATA); } - char[][] fileNames; + String[] fileNames; if( auto strs = cast(ArrayWrapperString2) object ){ fileNames = strs.array; } @@ -142,7 +142,7 @@ if (transferData.result !is COM.S_OK) return null; // How many files are there? int count = OS.DragQueryFile(stgmedium.unionField, 0xFFFFFFFF, null, 0); - char[][] fileNames = new char[][](count); + String[] fileNames = new String[](count); for (int i = 0; i < count; i++) { // How long is the name ? int size = OS.DragQueryFile(stgmedium.unionField, i, null, 0) + 1; @@ -159,11 +159,11 @@ return [CF_HDROPID]; } -protected char[][] getTypeNames(){ +protected String[] getTypeNames(){ return [CF_HDROP]; } bool checkFile(Object object) { - char[][] strings; + String[] strings; if( auto strs = cast(ArrayWrapperString2)object ){ strings = strs.array; }