diff dwt/graphics/Path.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 0405e18fec7f
children 36f5cb12e1a2
line wrap: on
line diff
--- a/dwt/graphics/Path.d	Sat Apr 26 10:01:48 2008 +0200
+++ b/dwt/graphics/Path.d	Mon May 05 00:12:38 2008 +0200
@@ -29,6 +29,7 @@
 
 import dwt.dwthelper.System;
 import tango.text.convert.Format;
+import dwt.dwthelper.utils;
 
 /**
  * Instances of this class represent paths through the two-dimensional
@@ -215,7 +216,7 @@
  *    <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
  * </ul>
  */
-public void addString(char[] string, float x, float y, Font font) {
+public void addString(String string, float x, float y, Font font) {
     if (isDisposed()) DWT.error(DWT.ERROR_GRAPHIC_DISPOSED);
     if (font is null) DWT.error(DWT.ERROR_NULL_ARGUMENT);
     if (font.isDisposed()) DWT.error(DWT.ERROR_INVALID_ARGUMENT);
@@ -518,7 +519,7 @@
  *
  * @return a string representation of the receiver
  */
-override public char[] toString() {
+override public String toString() {
     if (isDisposed()) return "Path {*DISPOSED*}";
     return Format( "Path {{{}}", handle );
 }