Fix CID 1534938 (COPY_INSTEAD_OF_MOVE)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2024-11-10 11:22:49 +01:00
parent 3fedc6cdfc
commit 1e8640a02e

View File

@ -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;
}