comparison dwt/graphics/Font.d @ 8:a9ab4c738ed8

Fix: instanceof
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:32:39 +0200
parents e831403a80a9
children 93b13b15f0b1
comparison
equal deleted inserted replaced
7:e831403a80a9 8:a9ab4c738ed8
159 * 159 *
160 * @see #hashCode 160 * @see #hashCode
161 */ 161 */
162 public bool equals(Object object) { 162 public bool equals(Object object) {
163 if (object is this) return true; 163 if (object is this) return true;
164 if (!(object instanceof Font)) return false; 164 if (!( null !is cast(Font)object )) return false;
165 Font font = cast(Font)object; 165 Font font = cast(Font)object;
166 return handle is font.handle; 166 return handle is font.handle;
167 } 167 }
168 168
169 /** 169 /**