diff dwtx/jface/internal/text/revisions/Hunk.d @ 138:b6bad70d540a

Regex instanceof changes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:26:23 +0200
parents 51e6e63f930e
children 75302ef3f92f
line wrap: on
line diff
--- a/dwtx/jface/internal/text/revisions/Hunk.d	Sun Aug 24 02:22:48 2008 +0200
+++ b/dwtx/jface/internal/text/revisions/Hunk.d	Sun Aug 24 02:26:23 2008 +0200
@@ -86,7 +86,7 @@
     public bool equals(Object obj) {
         if (obj is this)
             return true;
-        if (obj instanceof Hunk) {
+        if ( cast(Hunk)obj ) {
             Hunk other= cast(Hunk) obj;
             return other.line is this.line && other.delta is this.delta && other.changed is this.changed;
         }