mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Fix CID 1534938 (COPY_INSTEAD_OF_MOVE)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
3fedc6cdfc
commit
1e8640a02e
@ -80,7 +80,7 @@ public:
|
||||
int push_back(T object) {
|
||||
auto idx = get_index(object);
|
||||
if (idx == -1) {
|
||||
idx = table_.push_back(object);
|
||||
idx = table_.push_back(std::move(object));
|
||||
}
|
||||
return idx;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user