comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/custom/StyleRange.d @ 36:d46287db17ed

rakefile reorg, swt win phobosification
author Frank Benoit <benoit@tionex.de>
date Tue, 24 Mar 2009 08:48:41 +0100
parents 950d84783eac
children
comparison
equal deleted inserted replaced
35:634e4380db78 36:d46287db17ed
119 * @param object the object to compare with this object 119 * @param object the object to compare with this object
120 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise 120 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise
121 * 121 *
122 * @see #hashCode() 122 * @see #hashCode()
123 */ 123 */
124 public override int opEquals(Object object) { 124 public override equals_t opEquals(Object object) {
125 if (object is this) return true; 125 if (object is this) return true;
126 if (auto style = cast(StyleRange) object ) { 126 if (auto style = cast(StyleRange) object ) {
127 if (start !is style.start) return false; 127 if (start !is style.start) return false;
128 if (length !is style.length) return false; 128 if (length !is style.length) return false;
129 return similarTo(style); 129 return similarTo(style);