comparison 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
comparison
equal deleted inserted replaced
6:b903c16b6f48 7:e831403a80a9
199 */ 199 */
200 public bool equals(Object object) { 200 public bool equals(Object object) {
201 if (object is this) return true; 201 if (object is this) return true;
202 if (object is null) return false; 202 if (object is null) return false;
203 if (!(object instanceof TextStyle)) return false; 203 if (!(object instanceof TextStyle)) return false;
204 TextStyle style = (TextStyle)object; 204 TextStyle style = cast(TextStyle)object;
205 if (foreground !is null) { 205 if (foreground !is null) {
206 if (!foreground.equals(style.foreground)) return false; 206 if (!foreground.equals(style.foreground)) return false;
207 } else if (style.foreground !is null) return false; 207 } else if (style.foreground !is null) return false;
208 if (background !is null) { 208 if (background !is null) {
209 if (!background.equals(style.background)) return false; 209 if (!background.equals(style.background)) return false;