diff --git a/src/hb-ot-color-colr-table.hh b/src/hb-ot-color-colr-table.hh index 82eab9633..92a49bb4f 100644 --- a/src/hb-ot-color-colr-table.hh +++ b/src/hb-ot-color-colr-table.hh @@ -174,7 +174,7 @@ struct COLR baseGlyphsZ = COLR::min_size; layersZ = COLR::min_size + numBaseGlyphs * BaseGlyphRecord::min_size; - for (const hb_item_type& _ : + base_it.iter ()) + for (const hb_item_type _ : + base_it.iter ()) { auto* record = c->embed (_); if (unlikely (!record)) return_trace (false); diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 30571fb80..6ca69085f 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -1717,7 +1717,7 @@ struct ClassDefFormat1 startGlyph = glyph_min; if (unlikely (!classValue.serialize (c, glyph_count))) return_trace (false); - for (const hb_pair_t& gid_klass_pair : + it) + for (const hb_pair_t gid_klass_pair : + it) { unsigned idx = gid_klass_pair.first - glyph_min; classValue[idx] = gid_klass_pair.second;