Show
Ignore:
Timestamp:
05/04/08 18:12:38 (8 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted the char[] to String and use the an alias.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/dnd/FileTransfer.d

    r138 r212  
    4747 
    4848    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$ 
    5050    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$ 
    5252 
    5353private this() {} 
     
    8585        DND.error(DND.ERROR_INVALID_DATA); 
    8686    } 
    87     char[][] fileNames; 
     87    String[] fileNames; 
    8888    if( auto strs = cast(ArrayWrapperString2) object ){ 
    8989        fileNames = strs.array; 
     
    143143    // How many files are there? 
    144144    int count = OS.DragQueryFile(stgmedium.unionField, 0xFFFFFFFF, null, 0); 
    145     char[][] fileNames = new char[][](count); 
     145    String[] fileNames = new String[](count); 
    146146    for (int i = 0; i < count; i++) { 
    147147        // How long is the name ? 
     
    160160} 
    161161 
    162 protected char[][] getTypeNames(){ 
     162protected String[] getTypeNames(){ 
    163163    return [CF_HDROP]; 
    164164} 
    165165bool checkFile(Object object) { 
    166     char[][] strings; 
     166    String[] strings; 
    167167    if( auto strs = cast(ArrayWrapperString2)object ){ 
    168168        strings = strs.array;