From ba0ea56efab9caa942d59bf51c78e490969cab87 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Jun 2018 23:24:41 -0400 Subject: [PATCH] [substitute-closure] Rename function for clarity --- src/hb-ot-layout-gsub-table.hh | 4 ++-- src/hb-ot-layout-gsubgpos-private.hh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index 4921abee7..bd72fe6bf 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -1159,7 +1159,7 @@ struct SubstLookup : Lookup inline hb_closure_context_t::return_t closure (hb_closure_context_t *c, unsigned int this_index) const { TRACE_CLOSURE (this); - if (!c->start_lookup (this_index)) + if (!c->should_visit_lookup (this_index)) return_trace (HB_VOID); c->set_recurse_func (dispatch_closure_recurse_func); @@ -1263,7 +1263,7 @@ struct SubstLookup : Lookup static inline hb_closure_context_t::return_t dispatch_closure_recurse_func (hb_closure_context_t *c, unsigned int lookup_index) { - if (!c->start_lookup (lookup_index)) + if (!c->should_visit_lookup (lookup_index)) return HB_VOID; return dispatch_recurse_func (c, lookup_index); } diff --git a/src/hb-ot-layout-gsubgpos-private.hh b/src/hb-ot-layout-gsubgpos-private.hh index 1f899d1ec..661085d51 100644 --- a/src/hb-ot-layout-gsubgpos-private.hh +++ b/src/hb-ot-layout-gsubgpos-private.hh @@ -60,7 +60,7 @@ struct hb_closure_context_t : return HB_VOID; } - bool start_lookup (unsigned int lookup_index) + bool should_visit_lookup (unsigned int lookup_index) { if (is_lookup_done (lookup_index)) return false;