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/URLTransfer.d

    r197 r212  
    4646 
    4747    static URLTransfer _instance; 
    48     static const char[] CFSTR_INETURL = "UniformResourceLocator"; //$NON-NLS-1$ 
     48    static const String CFSTR_INETURL = "UniformResourceLocator"; //$NON-NLS-1$ 
    4949    static const int CFSTR_INETURLID; 
    5050 
     
    8686    transferData.result = COM.E_FAIL; 
    8787    // URL is stored as a null terminated byte array 
    88     char[] url = (cast(ArrayWrapperString2)object).array[0]; 
     88    String url = (cast(ArrayWrapperString2)object).array[0]; 
    8989    int codePage = OS.GetACP(); 
    9090    wchar[] chars = StrToWCHARs(codePage, url, true ); 
     
    148148} 
    149149 
    150 protected char[][] getTypeNames(){ 
     150protected String[] getTypeNames(){ 
    151151    return [CFSTR_INETURL]; 
    152152} 
     
    155155    if( auto s = cast(ArrayWrapperString2)object ){ 
    156156        if( s.array.length is 0 ) return false; 
    157         char[][] strings = s.array; 
     157        String[] strings = s.array; 
    158158        if (strings[0] is null || strings[0].length is 0) return false; 
    159159        //PORTING_FIXME: how to validata URL?