fix compilation with freetype

This commit is contained in:
Vadim Lopatin 2014-12-29 08:50:00 +03:00
parent baecfc2216
commit d5dff418fe
1 changed files with 2 additions and 2 deletions

View File

@ -34,10 +34,10 @@ private struct FontDef {
_italic = italic; _italic = italic;
_weight = weight; _weight = weight;
} }
const bool opEquals(ref const FontDef v) { bool opEquals(ref const FontDef v) const {
return _family == v._family && _italic == v._italic && _weight == v._weight && _face.equal(v._face); return _family == v._family && _italic == v._italic && _weight == v._weight && _face.equal(v._face);
} }
const hash_t toHash() const nothrow @safe { hash_t toHash() const nothrow @safe {
hash_t res = 123; hash_t res = 123;
res = res * 31 + cast(hash_t)_italic; res = res * 31 + cast(hash_t)_italic;
res = res * 31 + cast(hash_t)_weight; res = res * 31 + cast(hash_t)_weight;