Changeset 212:ab60f3309436 for dwt/dnd/FileTransfer.d
- Timestamp:
- 05/04/08 18:12:38 (8 months ago)
- Files:
-
- dwt/dnd/FileTransfer.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/dnd/FileTransfer.d
r138 r212 47 47 48 48 private static FileTransfer _instance; 49 private static final char[]CF_HDROP = "CF_HDROP "; //$NON-NLS-1$49 private static final String CF_HDROP = "CF_HDROP "; //$NON-NLS-1$ 50 50 private static final int CF_HDROPID = COM.CF_HDROP; 51 private static final char[]CF_HDROP_SEPARATOR = "\0"; //$NON-NLS-1$51 private static final String CF_HDROP_SEPARATOR = "\0"; //$NON-NLS-1$ 52 52 53 53 private this() {} … … 85 85 DND.error(DND.ERROR_INVALID_DATA); 86 86 } 87 char[][] fileNames;87 String[] fileNames; 88 88 if( auto strs = cast(ArrayWrapperString2) object ){ 89 89 fileNames = strs.array; … … 143 143 // How many files are there? 144 144 int count = OS.DragQueryFile(stgmedium.unionField, 0xFFFFFFFF, null, 0); 145 char[][] fileNames = new char[][](count);145 String[] fileNames = new String[](count); 146 146 for (int i = 0; i < count; i++) { 147 147 // How long is the name ? … … 160 160 } 161 161 162 protected char[][] getTypeNames(){162 protected String[] getTypeNames(){ 163 163 return [CF_HDROP]; 164 164 } 165 165 bool checkFile(Object object) { 166 char[][] strings;166 String[] strings; 167 167 if( auto strs = cast(ArrayWrapperString2)object ){ 168 168 strings = strs.array;
