Skip to content

Commit

Permalink
Fix CID 1534954 (COPY_INSTEAD_OF_MOVE)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Mar 9, 2024
1 parent 4c0f911 commit baf8e80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/training/pango/stringrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ bool StringRenderer::GetClusterStrings(std::vector<std::string> *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);
Expand Down

0 comments on commit baf8e80

Please sign in to comment.