Mercurial > projects > dwt-mac
diff dwt/graphics/TextStyle.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/TextStyle.d Wed Aug 27 14:10:03 2008 +0200 +++ b/dwt/graphics/TextStyle.d Wed Aug 27 14:30:35 2008 +0200 @@ -201,7 +201,7 @@ if (object is this) return true; if (object is null) return false; if (!(object instanceof TextStyle)) return false; - TextStyle style = (TextStyle)object; + TextStyle style = cast(TextStyle)object; if (foreground !is null) { if (!foreground.equals(style.foreground)) return false; } else if (style.foreground !is null) return false;