From 33f8de61863efa538c488121c476fd0e907020d0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 22 Dec 2018 15:10:18 -0500 Subject: [PATCH] [set] Change to const_iter --- src/hb-set.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hb-set.hh b/src/hb-set.hh index bf59c7ae1..ff28bf89c 100644 --- a/src/hb-set.hh +++ b/src/hb-set.hh @@ -671,9 +671,9 @@ struct hb_set_t /* * Iterator implementation. */ - struct iter_t : hb_sorted_iter_t + struct const_iter_t : hb_sorted_iter_t { - iter_t (const hb_set_t &s_) : + const_iter_t (const hb_set_t &s_) : s (s_), v (INVALID), l (s.get_population () + 1) { __next__ (); } typedef hb_codepoint_t __item_type__; @@ -688,8 +688,8 @@ struct hb_set_t hb_codepoint_t v; unsigned l; }; - iter_t iter () { return iter_t (*this); } - operator iter_t () { return iter (); } + const_iter_t const_iter () { return const_iter_t (*this); } + operator const_iter_t () { return const_iter (); } protected: