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