comparison dwt/graphics/FontData.d @ 36:db5a898b2119

Fixed a lot of compile errors
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 07 Oct 2008 12:56:18 +0200
parents 7d135fe0caf2
children d8635bb48c7c
comparison
equal deleted inserted replaced
35:7d135fe0caf2 36:db5a898b2119
220 if (!( null !is cast(FontData)object )) return false; 220 if (!( null !is cast(FontData)object )) return false;
221 FontData data = cast(FontData)object; 221 FontData data = cast(FontData)object;
222 return name.equals(data.name) && height is data.height && style is data.style; 222 return name.equals(data.name) && height is data.height && style is data.style;
223 } 223 }
224 224
225 alias opEquals equals; 225 //alias opEquals equals;
226 226
227 /** 227 /**
228 * Returns the height of the receiver in points. 228 * Returns the height of the receiver in points.
229 * 229 *
230 * @return the height of this FontData 230 * @return the height of this FontData
315 * 315 *
316 * @return the receiver's hash 316 * @return the receiver's hash
317 * 317 *
318 * @see #equals 318 * @see #equals
319 */ 319 */
320 public hast_t toHash () { 320 public hash_t toHash () {
321 return name.hashCode() ^ getHeight() ^ style; 321 return typeid(String).getHash(&name) ^ getHeight() ^ style;
322 } 322 }
323 323
324 alias toHash hashCode; 324 alias toHash hashCode;
325 325
326 /** 326 /**