From 8d0a90ac1bd9f6485d3e0fead7c648caa735eb81 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 18 Jun 2020 16:53:54 -0700 Subject: [PATCH] [dispatch] Default debug level to 0 --- src/hb-dispatch.hh | 2 +- src/hb-ot-layout-common.hh | 2 +- src/hb-ot-layout-gsubgpos.hh | 14 +++++++------- src/hb-ot-layout.cc | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/hb-dispatch.hh b/src/hb-dispatch.hh index acbb6e904..37b6a8eb8 100644 --- a/src/hb-dispatch.hh +++ b/src/hb-dispatch.hh @@ -35,7 +35,7 @@ * Dispatch */ -template +template struct hb_dispatch_context_t { private: diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 3ea62b15d..b66b63866 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -151,7 +151,7 @@ struct hb_subset_layout_context_t : }; struct hb_collect_variation_indices_context_t : - hb_dispatch_context_t + hb_dispatch_context_t { template return_t dispatch (const T &obj) { obj.collect_variation_indices (this); return hb_empty_t (); } diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 7a759d16f..d296cc66f 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -42,7 +42,7 @@ namespace OT { struct hb_intersects_context_t : - hb_dispatch_context_t + hb_dispatch_context_t { template return_t dispatch (const T &obj) { return obj.intersects (this->glyphs); } @@ -58,7 +58,7 @@ struct hb_intersects_context_t : }; struct hb_closure_context_t : - hb_dispatch_context_t + hb_dispatch_context_t { typedef return_t (*recurse_func_t) (hb_closure_context_t *c, unsigned int lookup_index); template @@ -132,7 +132,7 @@ struct hb_closure_context_t : }; struct hb_closure_lookups_context_t : - hb_dispatch_context_t + hb_dispatch_context_t { typedef return_t (*recurse_func_t) (hb_closure_lookups_context_t *c, unsigned lookup_index); template @@ -199,7 +199,7 @@ struct hb_closure_lookups_context_t : }; struct hb_would_apply_context_t : - hb_dispatch_context_t + hb_dispatch_context_t { template return_t dispatch (const T &obj) { return obj.would_apply (this); } @@ -224,7 +224,7 @@ struct hb_would_apply_context_t : }; struct hb_collect_glyphs_context_t : - hb_dispatch_context_t + hb_dispatch_context_t { typedef return_t (*recurse_func_t) (hb_collect_glyphs_context_t *c, unsigned int lookup_index); template @@ -302,7 +302,7 @@ struct hb_collect_glyphs_context_t : template struct hb_collect_coverage_context_t : - hb_dispatch_context_t, const Coverage &, 0> + hb_dispatch_context_t, const Coverage &> { typedef const Coverage &return_t; template @@ -694,7 +694,7 @@ struct hb_ot_apply_context_t : struct hb_get_subtables_context_t : - hb_dispatch_context_t + hb_dispatch_context_t { template static inline bool apply_to (const void *obj, OT::hb_ot_apply_context_t *c) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 18ec4c932..239a47615 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -1971,7 +1971,7 @@ hb_ot_layout_get_baseline (hb_font_t *font, struct hb_get_glyph_alternates_context_t : - hb_dispatch_context_t + hb_dispatch_context_t { static return_t default_return_value () { return 0; } bool stop_sublookup_iteration (return_t r) const { return r; }