From 8f15fb125247de8b19e8b5a9396f40a83114a64a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 13 Nov 2022 17:06:58 -0700 Subject: [PATCH] [util] Move variable closer to use --- util/shape-consumer.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/shape-consumer.hh b/util/shape-consumer.hh index 21151890b..8ee4bd697 100644 --- a/util/shape-consumer.hh +++ b/util/shape-consumer.hh @@ -61,11 +61,11 @@ struct shape_consumer_t : shape_options_t for (unsigned int n = num_iterations; n; n--) { - const char *error = nullptr; - populate_buffer (buffer, text, text_len, app.text_before, app.text_after); if (n == 1) output.consume_text (buffer, text, text_len, utf8_clusters); + + const char *error = nullptr; if (!shape (app.font, buffer, &error)) { failed = true;