From baf8e80068b98fe7a69598565ac8e7edcd1d5212 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 9 Mar 2024 10:24:24 +0100 Subject: [PATCH] Fix CID 1534954 (COPY_INSTEAD_OF_MOVE) Signed-off-by: Stefan Weil --- src/training/pango/stringrenderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/training/pango/stringrenderer.cpp b/src/training/pango/stringrenderer.cpp index 57c7eb3939..43e10e95a2 100644 --- a/src/training/pango/stringrenderer.cpp +++ b/src/training/pango/stringrenderer.cpp @@ -386,7 +386,7 @@ bool StringRenderer::GetClusterStrings(std::vector *cluster_text) { // decided to use an unmapped glyph. text = LigatureTable::Get()->AddLigatures(text, nullptr); } - start_byte_to_text[start_byte_index] = text; + start_byte_to_text[start_byte_index] = std::move(text); } } while (pango_layout_iter_next_run(run_iter)); pango_layout_iter_free(run_iter);