diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 1fdc15947..92a99aed3 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -296,7 +296,7 @@ struct _hb_has_null static Type *get_crap () { return &Crap (Type); } }; -template +template struct OffsetTo : Offset { HB_DELETE_COPY_ASSIGN (OffsetTo); diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 1771ed71a..19ff6e376 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -833,7 +833,7 @@ static inline bool intersects_class (const hb_set_t *glyphs, const HBUINT16 &val } static inline bool intersects_coverage (const hb_set_t *glyphs, const HBUINT16 &value, const void *data) { - const Offset16To &coverage = (const OffsetTo&)value; + const Offset16To &coverage = (const Offset16To&)value; return (data+coverage).intersects (glyphs); } @@ -879,7 +879,7 @@ static inline void collect_class (hb_set_t *glyphs, const HBUINT16 &value, const } static inline void collect_coverage (hb_set_t *glyphs, const HBUINT16 &value, const void *data) { - const Offset16To &coverage = (const OffsetTo&)value; + const Offset16To &coverage = (const Offset16To&)value; (data+coverage).collect_coverage (glyphs); } static inline void collect_array (hb_collect_glyphs_context_t *c HB_UNUSED, @@ -907,7 +907,7 @@ static inline bool match_class (hb_codepoint_t glyph_id, const HBUINT16 &value, } static inline bool match_coverage (hb_codepoint_t glyph_id, const HBUINT16 &value, const void *data) { - const Offset16To &coverage = (const OffsetTo&)value; + const Offset16To &coverage = (const Offset16To&)value; return (data+coverage).get_coverage (glyph_id) != NOT_COVERED; } @@ -2221,7 +2221,7 @@ struct ContextFormat3 for (const Offset16To& offset : coverages) { /* TODO(subset) This looks like should not be necessary to write this way. */ - auto *o = c->serializer->allocate_size> (OffsetTo::static_size); + auto *o = c->serializer->allocate_size> (Offset16To::static_size); if (unlikely (!o)) return_trace (false); if (!o->serialize_subset (c, offset, this)) return_trace (false); }