diff 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
line wrap: on
line diff
--- a/dwt/graphics/FontData.d	Sun Sep 14 23:32:29 2008 +0200
+++ b/dwt/graphics/FontData.d	Tue Oct 07 12:56:18 2008 +0200
@@ -222,7 +222,7 @@
     return name.equals(data.name) && height is data.height && style is data.style;
 }
 
-alias opEquals equals;
+//alias opEquals equals;
 
 /**
  * Returns the height of the receiver in points.
@@ -317,8 +317,8 @@
  *
  * @see #equals
  */
-public hast_t toHash () {
-    return name.hashCode() ^ getHeight() ^ style;
+public hash_t toHash () {
+    return typeid(String).getHash(&name) ^ getHeight() ^ style;
 }
 
 alias toHash hashCode;