comparison 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
comparison
equal deleted inserted replaced
137:25170b5a8951 138:b6bad70d540a
82 82
83 /* 83 /*
84 * @see dwtx.jface.text.Position#equals(java.lang.Object) 84 * @see dwtx.jface.text.Position#equals(java.lang.Object)
85 */ 85 */
86 public bool equals(Object other) { 86 public bool equals(Object other) {
87 if (other instanceof LinkedPosition) { 87 if ( cast(LinkedPosition)other ) {
88 LinkedPosition p= cast(LinkedPosition) other; 88 LinkedPosition p= cast(LinkedPosition) other;
89 return p.offset is offset && p.length is length && p.fDocument is fDocument; 89 return p.offset is offset && p.length is length && p.fDocument is fDocument;
90 } 90 }
91 return false; 91 return false;
92 } 92 }