Mercurial > projects > dwt-mac
diff dwt/graphics/FontData.d @ 7:e831403a80a9
Add 'cast' to casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:30:35 +0200 |
parents | 1a8b3cb347e0 |
children | a9ab4c738ed8 |
line wrap: on
line diff
--- a/dwt/graphics/FontData.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/graphics/FontData.d Wed Aug 27 14:30:35 2008 +0200 @@ -215,7 +215,7 @@ public bool equals (Object object) { if (object is this) return true; if (!(object instanceof FontData)) return false; - FontData data = (FontData)object; + FontData data = cast(FontData)object; return name.equals(data.name) && height is data.height && style is data.style; } @@ -227,7 +227,7 @@ * @see #setHeight(int) */ public int getHeight() { - return (int)height; + return cast(int)height; } /*public*/ float getHeightF() {