comparison dwtx/jface/text/link/LinkedPosition.d @ 134:51e6e63f930e

Regex fix for casts
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 01:46:20 +0200
parents 7d818bd32d63
children 6dcb0baaa031
comparison
equal deleted inserted replaced
133:7d818bd32d63 134:51e6e63f930e
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 (other instanceof LinkedPosition) {
88 LinkedPosition p= (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 }
93 93