diff dwtx/jface/text/source/AnnotationBarHoverManager.d @ 143:53b889547456

instanceof after &&
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 21:32:37 +0200
parents 893c017bcdc5
children 02cd5f1224d3
line wrap: on
line diff
--- a/dwtx/jface/text/source/AnnotationBarHoverManager.d	Sun Aug 24 21:29:00 2008 +0200
+++ b/dwtx/jface/text/source/AnnotationBarHoverManager.d	Sun Aug 24 21:32:37 2008 +0200
@@ -646,7 +646,7 @@
             CompositeRuler comp= cast(CompositeRuler) fVerticalRulerInfo;
             for (Iterator it= comp.getDecoratorIterator(); it.hasNext();) {
                 Object o= it.next();
-                if ( cast(IVerticalRulerInfoExtension)o  && o instanceof IVerticalRulerInfo) {
+                if ( cast(IVerticalRulerInfoExtension)o  && cast(IVerticalRulerInfo)o ) {
                     if ((cast(IVerticalRulerInfo) o).getControl() is event.getSource()) {
                         IAnnotationHover hover= (cast(IVerticalRulerInfoExtension) o).getHover();
                         if (hover !is null)