Mercurial > projects > dwt-win
diff dwt/graphics/Image.d @ 48:9a64a7781bab
Added override and alias, first chunk. Thanks torhu for doing this patch.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 03 Feb 2008 01:14:54 +0100 |
parents | f5482da87ed8 |
children | 0405e18fec7f |
line wrap: on
line diff
--- a/dwt/graphics/Image.d Sun Feb 03 00:59:28 2008 +0100 +++ b/dwt/graphics/Image.d Sun Feb 03 01:14:54 2008 +0100 @@ -1032,7 +1032,7 @@ * the image. Applications must dispose of all images which * they allocate. */ -public void dispose () { +override public void dispose () { if (handle is null) return; if (device.isDisposed()) return; if (memGC !is null) memGC.dispose(); @@ -1058,7 +1058,7 @@ * * @see #hashCode */ -public int opEquals (Object object) { +override public int opEquals (Object object) { if (object is this) return true; if (!(cast(Image)object)) return false; Image image = cast(Image) object; @@ -1555,7 +1555,7 @@ * * @see #equals */ -public hash_t toHash () { +override public hash_t toHash () { return cast(hash_t)handle; } @@ -2025,7 +2025,7 @@ * * @return <code>true</code> when the image is disposed and <code>false</code> otherwise */ -public bool isDisposed() { +override public bool isDisposed() { return handle is null; } @@ -2103,7 +2103,7 @@ * * @return a string representation of the receiver */ -public char[] toString () { +override public char[] toString () { if (isDisposed()) return "Image {*DISPOSED*}"; return Format( "Image {{{}}", handle ); }