Mercurial > projects > dwt-mac
diff dwt/graphics/TextStyle.d @ 8:a9ab4c738ed8
Fix: instanceof
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:32:39 +0200 |
parents | e831403a80a9 |
children | 965ac0a77267 |
line wrap: on
line diff
--- a/dwt/graphics/TextStyle.d Wed Aug 27 14:30:35 2008 +0200 +++ b/dwt/graphics/TextStyle.d Wed Aug 27 14:32:39 2008 +0200 @@ -200,7 +200,7 @@ public bool equals(Object object) { if (object is this) return true; if (object is null) return false; - if (!(object instanceof TextStyle)) return false; + if (!( null !is cast(TextStyle)object )) return false; TextStyle style = cast(TextStyle)object; if (foreground !is null) { if (!foreground.equals(style.foreground)) return false;