Mercurial > projects > dwt-addons
comparison dwtx/jface/text/Region.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 51e6e63f930e |
children | 3678e4f1a766 |
comparison
equal
deleted
inserted
replaced
137:25170b5a8951 | 138:b6bad70d540a |
---|---|
194 | 194 |
195 /* | 195 /* |
196 * @see java.lang.Object#equals(java.lang.Object) | 196 * @see java.lang.Object#equals(java.lang.Object) |
197 */ | 197 */ |
198 public bool equals(Object o) { | 198 public bool equals(Object o) { |
199 if (o instanceof IRegion) { | 199 if ( cast(IRegion)o ) { |
200 IRegion r= cast(IRegion) o; | 200 IRegion r= cast(IRegion) o; |
201 return r.getOffset() is fOffset && r.getLength() is fLength; | 201 return r.getOffset() is fOffset && r.getLength() is fLength; |
202 } | 202 } |
203 return false; | 203 return false; |
204 } | 204 } |