From 3fedc6cdfc6702b8c5cf3714601105b55bbdd1ea Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 10 Nov 2024 11:21:04 +0100 Subject: [PATCH] Fix CID 1534939 (COPY_INSTEAD_OF_MOVE) Signed-off-by: Stefan Weil --- src/ccstruct/blamer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ccstruct/blamer.cpp b/src/ccstruct/blamer.cpp index 92260054..ff7a7c4d 100644 --- a/src/ccstruct/blamer.cpp +++ b/src/ccstruct/blamer.cpp @@ -92,7 +92,7 @@ void BlamerBundle::SetSymbolTruth(const UNICHARSET &unicharset, const char *char if (id != INVALID_UNICHAR_ID) { std::string normed_uch(unicharset.get_normed_unichar(id)); if (normed_uch.length() > 0) { - symbol_str = normed_uch; + symbol_str = std::move(normed_uch); } } int length = truth_word_.length();