From ff93ac8cb24cbc3d9dc1a2bfb0faa88950f4a507 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 Feb 2013 14:51:40 -0500 Subject: [PATCH] Minor --- src/hb-ot-layout-gsubgpos-private.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-layout-gsubgpos-private.hh b/src/hb-ot-layout-gsubgpos-private.hh index a15dd23d8..d2cc85b8d 100644 --- a/src/hb-ot-layout-gsubgpos-private.hh +++ b/src/hb-ot-layout-gsubgpos-private.hh @@ -399,13 +399,12 @@ struct hb_apply_context_t inline bool next (void) { assert (num_items > 0); - matcher_t::may_skip_t skip; while (!has_no_chance ()) { idx++; const hb_glyph_info_t &info = c->buffer->info[idx]; - skip = matcher.may_skip (c, info); + matcher_t::may_skip_t skip = matcher.may_skip (c, info); if (unlikely (skip == matcher_t::SKIP_YES)) continue; @@ -472,13 +471,12 @@ struct hb_apply_context_t inline bool prev (void) { assert (num_items > 0); - matcher_t::may_skip_t skip; while (!has_no_chance ()) { idx--; const hb_glyph_info_t &info = c->buffer->out_info[idx]; - skip = matcher.may_skip (c, info); + matcher_t::may_skip_t skip = matcher.may_skip (c, info); if (unlikely (skip == matcher_t::SKIP_YES)) continue;