diff dwt/DWT.d @ 238:380bad9f6852

reverted char[] to String
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:42:55 +0200
parents 08789b28bdf3
children ce446666f5a2
line wrap: on
line diff
--- a/dwt/DWT.d	Sat Apr 26 10:01:30 2008 +0200
+++ b/dwt/DWT.d	Mon May 05 00:42:55 2008 +0200
@@ -3422,7 +3422,7 @@
  *
  * @see DWT
  */
-static char[] findErrorText (int code) {
+static String findErrorText (int code) {
     switch (code) {
         case ERROR_UNSPECIFIED:            return "Unspecified error"; //$NON-NLS-1$
         case ERROR_NO_HANDLES:             return "No more handles"; //$NON-NLS-1$
@@ -3479,7 +3479,7 @@
  *    <li>ERROR_NULL_ARGUMENT - if the key is null</li>
  * </ul>
  */
-public static char[] getMessage(char[] key) {
+public static String getMessage(String key) {
     // PORTING_FIXME: Implement
     return "msg not found";
     //return Compatibility.getMessage(key);
@@ -3491,7 +3491,7 @@
  *
  * @return the DWT platform name
  */
-public static char[] getPlatform () {
+public static String getPlatform () {
     return Platform.PLATFORM;
 }
 
@@ -3510,7 +3510,7 @@
  *
  * @param code the DWT error code
  */
-public static void error (char[] file, long line, int code) {
+public static void error (String file, long line, int code) {
     error (code, null);
 }
 public static void error (int code) {
@@ -3574,7 +3574,7 @@
  *
  * @since 3.0
  */
-public static void error (int code, Exception throwable, char[] detail) {
+public static void error (int code, Exception throwable, String detail) {
 
     /*
     * This code prevents the creation of "chains" of SWTErrors and
@@ -3595,7 +3595,7 @@
         if (auto t = cast(DWTException)throwable) throw t;
     }
 
-    char[] message = findErrorText (code);
+    String message = findErrorText (code);
     if (detail != null) message ~= detail;
     switch (code) {