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/graphics/Device.d

    r197 r212  
    458458 * </ul> 
    459459 */ 
    460 public FontData [] getFontList (char[] faceName, bool scalable) { 
     460public FontData [] getFontList (String faceName, bool scalable) { 
    461461    checkDevice (); 
    462462 
     
    539539} 
    540540 
    541 char[] getLastError () { 
     541String getLastError () { 
    542542    int error = OS.GetLastError(); 
    543543    if (error is 0) return ""; //$NON-NLS-1$ 
     
    545545} 
    546546 
    547 char[] getLastErrorText () { 
     547String getLastErrorText () { 
    548548    int error = OS.GetLastError(); 
    549549    if (error is 0) return ""; //$NON-NLS-1$ 
     
    551551    int dwFlags = OS.FORMAT_MESSAGE_ALLOCATE_BUFFER | OS.FORMAT_MESSAGE_FROM_SYSTEM | OS.FORMAT_MESSAGE_IGNORE_INSERTS; 
    552552    int length = OS.FormatMessage(dwFlags, null, error, OS.LANG_USER_DEFAULT, cast(TCHAR*)&buffer, 0, null); 
    553     char[] errorNum = ("[GetLastError=") ~ .toHex(error) ~ "] "; 
     553    String errorNum = ("[GetLastError=") ~ .toHex(error) ~ "] "; 
    554554    if (length == 0) return errorNum; 
    555     char[] buffer1 = .TCHARzToStr(buffer, length); 
     555    String buffer1 = .TCHARzToStr(buffer, length); 
    556556    if ( *buffer != 0) 
    557557        OS.LocalFree(cast(HLOCAL)buffer); 
     
    792792 * @since 3.3 
    793793 */ 
    794 public bool loadFont (char[] path) { 
     794public bool loadFont (String path) { 
    795795    checkDevice(); 
    796796    if (path is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);