mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-24 02:59:07 +08:00
Fix CID 1534957 (COPY_INSTEAD_OF_MOVE)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
151cf07086
commit
4c0f911092
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user