From 794fac327cf13b4b4d8a66281c15df6aac2d15c6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 29 Jun 2023 20:55:52 -0600 Subject: [PATCH] [glyf] Minor another range for loop --- src/OT/glyf/glyf.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OT/glyf/glyf.hh b/src/OT/glyf/glyf.hh index 1d546acd6..6300cf4be 100644 --- a/src/OT/glyf/glyf.hh +++ b/src/OT/glyf/glyf.hh @@ -225,8 +225,8 @@ struct glyf_accelerator_t 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 (); }