From 7798e4fcc34edca5c7d5d2fe7abd09a0540f0fea Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 Jan 2019 00:25:53 -0800 Subject: [PATCH] [iter] Change Coverage iterator to only return glyph-id --- src/hb-ot-layout-common.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 5c8b2d07a..d7ae24e81 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -1120,8 +1120,8 @@ struct Coverage } struct iter_t : - hb_iter_t >, - hb_iter_mixin_t > + hb_iter_t, + hb_iter_mixin_t { enum { is_sorted_iterator = true }; iter_t (const Coverage &c_ = Null(Coverage)) @@ -1153,8 +1153,8 @@ struct Coverage default: break; } } - typedef const hb_pair_t __item_t__; - __item_t__ __item__ () const { return hb_pair (get_coverage (), get_glyph ()); } + typedef hb_codepoint_t __item_t__; + __item_t__ __item__ () const { return get_glyph (); } hb_codepoint_t get_glyph () const {