diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index 0452693dd7c19ef15cf8b36419c7f5bd5afb6251..26392b3239454508223d898227e03b67e403a6e6 100644 --- a/src/hb-machinery.hh +++ b/src/hb-machinery.hh @@ -473,7 +473,7 @@ struct hb_serialize_context_t } template - inline Type *start_embed (void) + inline Type *start_embed (void) const { Type *ret = reinterpret_cast (this->head); return ret; diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index d7f8983045edd65ecd67eb3340ccdb2908d08ee0..7f8489f391415b1abace62ab3d0d683847691ebf 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -1308,11 +1308,10 @@ struct GSUB : GSUBGPOS inline const SubstLookup& get_lookup (unsigned int i) const { return CastR (GSUBGPOS::get_lookup (i)); } - template - inline bool subset (hb_subset_context_t *c) + inline bool subset (hb_subset_context_t *c) { TRACE_SUBSET (this); - //struct GSUB *out = c->serializer->start_embed (); + struct GSUB *out = c->serializer->start_embed (); //XXX if (unlikely (!GSUBGPOS::subset (c))) return_trace (false); return_trace (true); } diff --git a/src/hb-subset.hh b/src/hb-subset.hh index 5202f73b0865c159a901f61b95156e29ede6fc66..9cdd388d780e6afe0111b3cfa4ca4c5e0a4538a8 100644 --- a/src/hb-subset.hh +++ b/src/hb-subset.hh @@ -36,9 +36,8 @@ #include "hb-subset-input.hh" #include "hb-subset-plan.hh" -template struct hb_subset_context_t : - hb_dispatch_context_t, bool, HB_DEBUG_SUBSET> + hb_dispatch_context_t { inline const char *get_name (void) { return "SUBSET"; } template @@ -47,11 +46,11 @@ struct hb_subset_context_t : bool stop_sublookup_iteration (bool r) const { return false; } hb_subset_plan_t *plan; - Serializer *serializer; + hb_serialize_context_t *serializer; unsigned int debug_depth; hb_subset_context_t (hb_subset_plan_t *plan_, - Serializer *serializer_) : + hb_serialize_context_t *serializer_) : plan (plan_), serializer (serializer_), debug_depth (0) {}