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