From c7e46ab2bfdb50786424804a5d910b45aaf5d316 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 13 Sep 2025 12:54:18 -0600 Subject: [PATCH] [instancer/varstore] Avoid copies in loops --- src/hb-ot-layout-common.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 31a1fefc6..794bdd077 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -2386,7 +2386,7 @@ struct delta_row_encoding_t void merge (const delta_row_encoding_t& other) { items.alloc (items.length + other.items.length); - for (auto row : other.items) + for (auto &row : other.items) add_row (row); // Merge chars @@ -2409,7 +2409,7 @@ struct delta_row_encoding_t bool long_words = false; - for (auto row : items) + for (auto &row : items) { assert (row->length == chars.length);