From 4c0f911092106d15a44a39aef92f18f8ecfdc166 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 9 Mar 2024 10:22:47 +0100 Subject: [PATCH] Fix CID 1534957 (COPY_INSTEAD_OF_MOVE) Signed-off-by: Stefan Weil --- src/training/pango/ligature_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/training/pango/ligature_table.cpp b/src/training/pango/ligature_table.cpp index 18bfbed9..48576bae 100644 --- a/src/training/pango/ligature_table.cpp +++ b/src/training/pango/ligature_table.cpp @@ -75,7 +75,7 @@ void LigatureTable::Init() { int norm_length = normed8.size(); if (normed8 != lig8 && lig_length > 1 && norm_length > 1) { norm_to_lig_table_[normed8] = lig8; - lig_to_norm_table_[lig8] = normed8; + lig_to_norm_table_[lig8] = std::move(normed8); if (min_lig_length_ == 0 || lig_length < min_lig_length_) { min_lig_length_ = lig_length; }