Fix CID 1534948 (COPY_INSTEAD_OF_MOVE)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2024-03-09 10:14:03 +01:00
parent d172f9b802
commit 479789b379

View File

@ -225,7 +225,7 @@ void ShapeClassifier::FilterDuplicateUnichars(std::vector<ShapeRating> *results)
}
filtered_results.push_back((*results)[r]);
}
*results = filtered_results;
*results = std::move(filtered_results);
}
} // namespace tesseract.