diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 0fac55634..7b192833f 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -152,8 +152,8 @@ struct glyf void _free_compiled_subset_glyphs (hb_vector_t &glyphs) const { - for (unsigned i = 0; i < glyphs.length; i++) - glyphs[i].free_compiled_bytes (); + for (auto &g : glyphs) + g.free_compiled_bytes (); } protected: