Skip to content

Commit 3fedc6c

Browse files
committed
Fix CID 1534939 (COPY_INSTEAD_OF_MOVE)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 02409f5 commit 3fedc6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccstruct/blamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void BlamerBundle::SetSymbolTruth(const UNICHARSET &unicharset, const char *char
9292
if (id != INVALID_UNICHAR_ID) {
9393
std::string normed_uch(unicharset.get_normed_unichar(id));
9494
if (normed_uch.length() > 0) {
95-
symbol_str = normed_uch;
95+
symbol_str = std::move(normed_uch);
9696
}
9797
}
9898
int length = truth_word_.length();

0 commit comments

Comments
 (0)