diff dwt/custom/StyleRange.d @ 238:380bad9f6852

reverted char[] to String
author Frank Benoit <benoit@tionex.de>
date Mon, 05 May 2008 00:42:55 +0200
parents cd8dc3f19679
children ce446666f5a2
line wrap: on
line diff
--- a/dwt/custom/StyleRange.d	Sat Apr 26 10:01:30 2008 +0200
+++ b/dwt/custom/StyleRange.d	Mon May 05 00:42:55 2008 +0200
@@ -12,6 +12,8 @@
  *******************************************************************************/
 module dwt.custom.StyleRange;
 
+import dwt.dwthelper.utils;
+
 
 import dwt.DWT;
 import dwt.graphics.Color;
@@ -175,7 +177,7 @@
  *
  * @return a string representation of the StyleRange
  */
-public override char[] toString() {
+public override String toString() {
     StringBuffer buffer = new StringBuffer();
     buffer.append("StyleRange {");
     buffer.append(start);
@@ -195,7 +197,7 @@
         default:
             buffer.append("normal");
     }
-    char[] str = super.toString();
+    String str = super.toString();
     int index = tango.text.Util.locate( str, '{');
     if( index is str.length ) index = -1;
     str = str[ index + 1 .. $ ];