Show
Ignore:
Timestamp:
05/04/08 18:42:55 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted char[] to String

Files:

Legend:

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

    r115 r238  
    1313module dwt.dnd.DND; 
    1414 
     15import dwt.dwthelper.utils; 
     16 
    1517 
    1618import dwt.DWT; 
     
    201203 
    202204 
    203     static const char[] INIT_DRAG_MESSAGE = "Cannot initialize Drag"; //$NON-NLS-1$ 
    204     static const char[] INIT_DROP_MESSAGE = "Cannot initialize Drop"; //$NON-NLS-1$ 
    205     static const char[] CANNOT_SET_CLIPBOARD_MESSAGE = "Cannot set data in clipboard"; //$NON-NLS-1$ 
    206     static const char[] INVALID_DATA_MESSAGE = "Data does not have correct format for type"; //$NON-NLS-1$ 
     205    static const String INIT_DRAG_MESSAGE = "Cannot initialize Drag"; //$NON-NLS-1$ 
     206    static const String INIT_DROP_MESSAGE = "Cannot initialize Drop"; //$NON-NLS-1$ 
     207    static const String CANNOT_SET_CLIPBOARD_MESSAGE = "Cannot set data in clipboard"; //$NON-NLS-1$ 
     208    static const String INVALID_DATA_MESSAGE = "Data does not have correct format for type"; //$NON-NLS-1$ 
    207209 
    208210/** 
     
    244246        /* OS Failure/Limit (fatal, may occur only on some platforms) */ 
    245247        case DND.ERROR_CANNOT_INIT_DRAG:{ 
    246             char[] msg = DND.INIT_DRAG_MESSAGE; 
    247             if (hresult !is 0) msg ~= " result = "~to!(char[])(hresult); //$NON-NLS-1$ 
     248            String msg = DND.INIT_DRAG_MESSAGE; 
     249            if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$ 
    248250            throw new DWTError (code, msg); 
    249251        } 
    250252        case DND.ERROR_CANNOT_INIT_DROP:{ 
    251             char[] msg = DND.INIT_DROP_MESSAGE; 
    252             if (hresult !is 0) msg ~= " result = "~to!(char[])(hresult); //$NON-NLS-1$ 
     253            String msg = DND.INIT_DROP_MESSAGE; 
     254            if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$ 
    253255            throw new DWTError (code, msg); 
    254256        } 
    255257        case DND.ERROR_CANNOT_SET_CLIPBOARD:{ 
    256             char[] msg = DND.CANNOT_SET_CLIPBOARD_MESSAGE; 
    257             if (hresult !is 0) msg ~= " result = "~to!(char[])(hresult); //$NON-NLS-1$ 
     258            String msg = DND.CANNOT_SET_CLIPBOARD_MESSAGE; 
     259            if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$ 
    258260            throw new DWTError (code, msg); 
    259261        } 
    260262        case DND.ERROR_INVALID_DATA:{ 
    261             char[] msg = DND.INVALID_DATA_MESSAGE; 
    262             if (hresult !is 0) msg ~= " result = "~to!(char[])(hresult); //$NON-NLS-1$ 
     263            String msg = DND.INVALID_DATA_MESSAGE; 
     264            if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$ 
    263265            throw new DWTException (code, msg); 
    264266        }