From a69a6cb09ee0ea1296c3bbd30c66b56f21afb6b6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 16 Apr 2024 17:08:06 -0600 Subject: [PATCH] Avoid a copy --- src/hb-ot-var-common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-var-common.hh b/src/hb-ot-var-common.hh index 481b1af03..259f81153 100644 --- a/src/hb-ot-var-common.hh +++ b/src/hb-ot-var-common.hh @@ -557,7 +557,7 @@ struct tuple_delta_t } result_t solutions = rebase_tent (*tent, axis_limit, axis_triple_distances); - for (auto t : solutions) + for (auto &t : solutions) { tuple_delta_t new_var = *this; if (t.second == Triple ())