From be1d4bcf29ba87747252eff087a89eda5b4fa007 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 25 Jun 2022 17:45:21 -0600 Subject: [PATCH] [glyf] Add fast __end__ to composite iterator --- src/OT/glyf/Glyph.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OT/glyf/Glyph.hh b/src/OT/glyf/Glyph.hh index c98f43c03..e78375043 100644 --- a/src/OT/glyf/Glyph.hh +++ b/src/OT/glyf/Glyph.hh @@ -173,8 +173,9 @@ struct composite_iter_t : hb_iter_with_fallback_t (current, current_size)); } + composite_iter_t __end__ () const { return composite_iter_t (); } bool operator != (const composite_iter_t& o) const - { return glyph != o.glyph || current != o.current; } + { return current != o.current; } void set_next (const CompositeGlyphChain *composite)