comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/StyleRange.d @ 26:f589fc20a5f9

work on linux phobos
author Frank Benoit <benoit@tionex.de>
date Sat, 21 Mar 2009 11:22:55 +0100
parents f713da8bc051
children c01d033c633a
comparison
equal deleted inserted replaced
25:f713da8bc051 26:f589fc20a5f9
121 * @param object the object to compare with this object 121 * @param object the object to compare with this object
122 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise 122 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise
123 * 123 *
124 * @see #hashCode() 124 * @see #hashCode()
125 */ 125 */
126 public override int opEquals(Object object) { 126 public override equals_t opEquals(Object object) {
127 if (object is this) return true; 127 if (object is this) return true;
128 if (auto style = cast(StyleRange) object ) { 128 if (auto style = cast(StyleRange) object ) {
129 if (start !is style.start) return false; 129 if (start !is style.start) return false;
130 if (length !is style.length) return false; 130 if (length !is style.length) return false;
131 return similarTo(style); 131 return similarTo(style);