comparison dwt/graphics/Font.d @ 7:e831403a80a9

Add 'cast' to casts
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:30:35 +0200
parents 1a8b3cb347e0
children a9ab4c738ed8
comparison
equal deleted inserted replaced
6:b903c16b6f48 7:e831403a80a9
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 (!(object instanceof Font)) return false;
165 Font font = (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 /**
170 * Returns an array of <code>FontData</code>s representing the receiver. 170 * Returns an array of <code>FontData</code>s representing the receiver.