Mercurial > projects > dwt-mac
diff dwt/graphics/RGB.d @ 36:db5a898b2119
Fixed a lot of compile errors
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Tue, 07 Oct 2008 12:56:18 +0200 |
parents | d408fc12b991 |
children | 642f460a0908 |
line wrap: on
line diff
--- a/dwt/graphics/RGB.d Sun Sep 14 23:32:29 2008 +0200 +++ b/dwt/graphics/RGB.d Tue Oct 07 12:56:18 2008 +0200 @@ -17,6 +17,7 @@ import dwt.DWT; import dwt.internal.SerializableCompatibility; +import tango.text.convert.Format; import dwt.dwthelper.utils; /** @@ -196,7 +197,7 @@ * * @see #hashCode() */ -public bool opEquals(Object object) { +public int opEquals(Object object) { if (object is this) return true; if (!( null !is cast(RGB)object )) return false; RGB rgb = cast(RGB)object; @@ -228,7 +229,7 @@ * @return a string representation of the <code>RGB</code> */ public String toString() { - return "RGB {" ~ red ~ ", " ~ green ~ ", " ~ blue ~ "}"; //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ + return Format("RGB {{}{}{}{}{}{}" , red , ", " , green , ", " , blue , "}"); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } }