Mercurial > projects > dwt-addons
diff dwtx/jface/text/formatter/ContentFormatter.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 6dcb0baaa031 |
children | 75302ef3f92f |
line wrap: on
line diff
--- a/dwtx/jface/text/formatter/ContentFormatter.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/text/formatter/ContentFormatter.d Sun Aug 24 02:26:23 2008 +0200 @@ -185,7 +185,7 @@ */ public int compareTo(Object obj) { - if (obj instanceof PositionReference) { + if ( cast(PositionReference)obj ) { PositionReference r= cast(PositionReference) obj; return getCharacterPosition() - r.getCharacterPosition(); }