Mercurial > projects > dwt-addons
diff dwtx/jface/text/link/LinkedPosition.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 6dcb0baaa031 |
children | 3678e4f1a766 |
line wrap: on
line diff
--- a/dwtx/jface/text/link/LinkedPosition.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/text/link/LinkedPosition.d Sun Aug 24 02:26:23 2008 +0200 @@ -84,7 +84,7 @@ * @see dwtx.jface.text.Position#equals(java.lang.Object) */ public bool equals(Object other) { - if (other instanceof LinkedPosition) { + if ( cast(LinkedPosition)other ) { LinkedPosition p= cast(LinkedPosition) other; return p.offset is offset && p.length is length && p.fDocument is fDocument; }