diff dwt/widgets/Decorations.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 3afcd4ddcf90
children 36f5cb12e1a2
line wrap: on
line diff
--- a/dwt/widgets/Decorations.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/widgets/Decorations.d	Mon May 05 00:12:38 2008 +0200
@@ -717,7 +717,7 @@
     return swFlags is OS.SW_SHOWMINNOACTIVE;
 }
 
-override char[] getNameText () {
+override String getNameText () {
     return getText ();
 }
 
@@ -749,7 +749,7 @@
  *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  * </ul>
  */
-public char[] getText () {
+public String getText () {
     checkWidget ();
     int length = OS.GetWindowTextLength (handle);
     if (length is 0) return "";
@@ -1333,7 +1333,7 @@
  *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  * </ul>
  */
-public void setText (char[] string) {
+public void setText (String string) {
     checkWidget ();
     if (string is null) error (DWT.ERROR_NULL_ARGUMENT);
     /* Use the character encoding for the default locale */
@@ -1607,7 +1607,7 @@
     if (OS.GetParent ( cast(HWND)lParam) is handle) {
         TCHAR[128] buffer = 0;
         OS.GetClassName (cast(HWND)lParam, buffer.ptr, buffer.length );
-        char[] className = TCHARzToStr( buffer.ptr );
+        String className = TCHARzToStr( buffer.ptr );
         if (className == Display.AWT_WINDOW_CLASS) {
             return LRESULT.ZERO;
         }