commit | 794fac327cf13b4b4d8a66281c15df6aac2d15c6 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Thu Jun 29 20:55:52 2023 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Thu Jun 29 20:56:16 2023 -0600 |
tree | 7a7a7c18d5de0c9f17d97d7b744df37c29d614bc | |
parent | 0ae167662657c084ecc26db27830b51c469240f2 [diff] |
[glyf] Minor another range for loop
diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 1d546ac..6300cf4 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh
@@ -225,8 +225,8 @@ if (consumer.is_consuming_contour_points ()) { - for (unsigned point_index = 0; point_index < count; point_index++) - consumer.consume_point (all_points.arrayZ[point_index]); + for (auto &point : all_points.as_array ().sub_array (0, count)) + consumer.consume_point (point); consumer.points_end (); }