diff dwt/graphics/TextStyle.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/graphics/TextStyle.d	Sat Apr 26 10:01:30 2008 +0200
+++ b/dwt/graphics/TextStyle.d	Mon May 05 00:42:55 2008 +0200
@@ -12,6 +12,8 @@
  *******************************************************************************/
 module dwt.graphics.TextStyle;
 
+import dwt.dwthelper.utils;
+
 import dwt.DWT;
 import dwt.graphics.Font;
 import dwt.graphics.Color;
@@ -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 ~= ", ";