diff dwt/widgets/DirectoryDialog.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 811e926196d6
children 36f5cb12e1a2
line wrap: on
line diff
--- a/dwt/widgets/DirectoryDialog.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/widgets/DirectoryDialog.d	Mon May 05 00:12:38 2008 +0200
@@ -40,9 +40,9 @@
  */
 
 public class DirectoryDialog : Dialog {
-    static char[] message = "";
-    static char[] filterPath = "";  //$NON-NLS-1$//$NON-NLS-2$
-    static char[] directoryPath;
+    static String message = "";
+    static String filterPath = "";  //$NON-NLS-1$//$NON-NLS-2$
+    static String directoryPath;
 
 /**
  * Constructs a new instance of this class given only its parent.
@@ -128,7 +128,7 @@
  *
  * @see #setFilterPath
  */
-public char[] getFilterPath () {
+public String getFilterPath () {
     return filterPath;
 }
 
@@ -139,7 +139,7 @@
  *
  * @return the message
  */
-public char[] getMessage () {
+public String getMessage () {
     return message;
 }
 
@@ -155,7 +155,7 @@
  *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the dialog</li>
  * </ul>
  */
-public char[] open () {
+public String open () {
     if (OS.IsWinCE) DWT.error (DWT.ERROR_NOT_IMPLEMENTED);
 
     auto hHeap = OS.GetProcessHeap ();
@@ -167,7 +167,7 @@
     /* Copy the message to OS memory */
     TCHAR* lpszTitle;
     if (message.length !is 0) {
-        char[] string = message;
+        String string = message;
         if (string.indexOf ('&') !is -1) {
             int length = string.length;
             char [] buffer = new char [length * 2];
@@ -297,7 +297,7 @@
  *
  * @param string the filter path
  */
-public void setFilterPath (char[] string) {
+public void setFilterPath (String string) {
     filterPath = string;
 }
 
@@ -312,7 +312,7 @@
  *    <li>ERROR_NULL_ARGUMENT - if the string is null</li>
  * </ul>
  */
-public void setMessage (char[] string) {
+public void setMessage (String string) {
     if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
     message = string;
 }