Mercurial > projects > dwt-win
diff dwt/events/TypedEvent.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 | bef1ed4ebc50 |
children | fd9c62a2998e |
line wrap: on
line diff
--- a/dwt/events/TypedEvent.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/events/TypedEvent.d Mon May 05 00:12:38 2008 +0200 @@ -20,6 +20,7 @@ import tango.text.convert.Format; import tango.text.Util : split; +import dwt.dwthelper.utils; /** * This is the super class for all typed event classes provided @@ -87,8 +88,8 @@ * * @return the name of the event */ -char[] getName () { - char[] str = this.classinfo.name; +String getName () { + String str = this.classinfo.name; return split( str, "." )[$-1]; } @@ -98,9 +99,9 @@ * * @return a string representation of the event */ -public override char[] toString() { - char[] str_widget = widget is null ? "null" : widget.toString; - char[] str_data = data is null ? "null" : data.toString; +public override String toString() { + String str_widget = widget is null ? "null" : widget.toString; + String str_data = data is null ? "null" : data.toString; return Format( "{}{{time={} data={}}", str_widget, time, str_data ); } }