diff dwt/graphics/TextStyle.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 97c2675aca38
children 36f5cb12e1a2
line wrap: on
line diff
--- a/dwt/graphics/TextStyle.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/graphics/TextStyle.d	Mon May 05 00:12:38 2008 +0200
@@ -18,6 +18,8 @@
 import dwt.graphics.GlyphMetrics;
 
 import tango.util.Convert;
+import dwt.dwthelper.utils;
+
 /**
  * <code>TextStyle</code> defines a set of styles that can be applied
  * to a range of text.
@@ -173,8 +175,8 @@
  *
  * @return a string representation of the <code>TextStyle</code>
  */
-override public char[] toString () {
-    char[] buffer = "TextStyle {";
+override public String toString () {
+    String buffer = "TextStyle {";
     int startLength = buffer.length;
     if (font !is null) {
         if (buffer.length > startLength) buffer ~= ", ";
@@ -202,7 +204,7 @@
     if (rise !is 0) {
         if (buffer.length > startLength) buffer ~= ", ";
         buffer ~= "rise=";
-        buffer ~= to!(char[])(rise);
+        buffer ~= to!(String)(rise);
     }
     if (metrics !is null) {
         if (buffer.length > startLength) buffer ~= ", ";