Mercurial > projects > dwt-mac
diff dwt/graphics/Region.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/Region.d Wed Aug 27 14:30:35 2008 +0200 +++ b/dwt/graphics/Region.d Wed Aug 27 14:32:39 2008 +0200 @@ -298,7 +298,7 @@ */ public bool equals(Object object) { if (this is object) return true; - if (!(object instanceof Region)) return false; + if (!( null !is cast(Region)object )) return false; Region region = cast(Region)object; return handle is region.handle; }