Mercurial > projects > dwt-win
diff dwt/custom/StackLayout.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 | a5afe31f5cdd |
children | fd9c62a2998e |
line wrap: on
line diff
--- a/dwt/custom/StackLayout.d Sat Apr 26 10:01:48 2008 +0200 +++ b/dwt/custom/StackLayout.d Mon May 05 00:12:38 2008 +0200 @@ -129,8 +129,8 @@ } } -char[] getName () { - char[] string = this.classinfo.name; +String getName () { + String string = this.classinfo.name; int index = tango.text.Util.locatePrior( string ,'.'); if (index is string.length ) return string; return string[ index + 1 .. $ ]; @@ -142,11 +142,11 @@ * * @return a string representation of the layout */ -public override char[] toString () { - char[] string = getName ()~" {"; - if (marginWidth !is 0) string ~= "marginWidth="~to!(char[])(marginWidth)~" "; - if (marginHeight !is 0) string ~= "marginHeight="~to!(char[])(marginHeight)~" "; - if (topControl !is null) string ~= "topControl="~to!(char[])(topControl)~" "; +public override String toString () { + String string = getName ()~" {"; + if (marginWidth !is 0) string ~= "marginWidth="~to!(String)(marginWidth)~" "; + if (marginHeight !is 0) string ~= "marginHeight="~to!(String)(marginHeight)~" "; + if (topControl !is null) string ~= "topControl="~to!(String)(topControl)~" "; string = tango.text.Util.trim(string); string ~= "}"; return string;