diff dwt/graphics/ImageLoader.d @ 212:ab60f3309436

reverted the char[] to String and use the an alias.
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:12:38 +0200
parents 5f2e72114476
children fd9c62a2998e
line wrap: on
line diff
--- a/dwt/graphics/ImageLoader.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/graphics/ImageLoader.d	Mon May 05 00:12:38 2008 +0200
@@ -23,6 +23,7 @@
 
 import tango.core.Exception;
 import tango.core.Array;
+import dwt.dwthelper.utils;
 
 
 /**
@@ -154,7 +155,7 @@
  *    <li>ERROR_UNSUPPORTED_FORMAT - if the image file contains an unrecognized format</li>
  * </ul>
  */
-public ImageData[] load(char[] filename) {
+public ImageData[] load(String filename) {
     if (filename is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     InputStream stream = null;
     void close(){
@@ -240,7 +241,7 @@
  *    <li>ERROR_UNSUPPORTED_FORMAT - if the image data cannot be saved to the requested format</li>
  * </ul>
  */
-public void save(char[] filename, int format) {
+public void save(String filename, int format) {
     if (filename is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     OutputStream stream = null;
     try {