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/internal/image/GIFFileFormat.d

    r200 r238  
    2929 
    3030final class GIFFileFormat : FileFormat { 
    31     char[] signature; 
     31    String signature; 
    3232    int screenWidth, screenHeight, backgroundPixel, bitsPerPixel, defaultDepth; 
    3333    int disposalMethod = 0; 
     
    6565            stream.read(signature); 
    6666            stream.unread(signature); 
    67             return cast(char[])signature == "GIF"; //$NON-NLS-1$ 
     67            return cast(String)signature == "GIF"; //$NON-NLS-1$ 
    6868        } catch (Exception e) { 
    6969            return false; 
     
    8181        try { 
    8282            inputStream.read(signatureBytes); 
    83             signature = cast(char[])signatureBytes.dup; 
     83            signature = cast(String)signatureBytes.dup; 
    8484            if (signature != "GIF") //$NON-NLS-1$ 
    8585                DWT.error(DWT.ERROR_INVALID_IMAGE); 
     
    318318            byte[] applicationBytes = new byte[8]; 
    319319            inputStream.read(applicationBytes); 
    320             char[] application = cast(char[])(applicationBytes.dup); 
     320            String application = cast(String)(applicationBytes.dup); 
    321321            // Read authentication code. 
    322322            byte[] authenticationBytes = new byte[3]; 
    323323            inputStream.read(authenticationBytes); 
    324             char[] authentication = cast(char[])(authenticationBytes.dup); 
     324            String authentication = cast(String)(authenticationBytes.dup); 
    325325            // Read application data. 
    326326            byte[] data = new byte[0];