comparison dwt/graphics/GlyphMetrics.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
78 * @see #hashCode() 78 * @see #hashCode()
79 */ 79 */
80 public bool equals (Object object) { 80 public bool equals (Object object) {
81 if (object is this) return true; 81 if (object is this) return true;
82 if (!(object instanceof GlyphMetrics)) return false; 82 if (!(object instanceof GlyphMetrics)) return false;
83 GlyphMetrics metrics = (GlyphMetrics)object; 83 GlyphMetrics metrics = cast(GlyphMetrics)object;
84 return metrics.ascent is ascent && metrics.descent is descent && metrics.width is width; 84 return metrics.ascent is ascent && metrics.descent is descent && metrics.width is width;
85 } 85 }
86 86
87 /** 87 /**
88 * Returns an integer hash code for the receiver. Any two 88 * Returns an integer hash code for the receiver. Any two