Skip to content

Commit 1e8640a

Browse files
committed
Fix CID 1534938 (COPY_INSTEAD_OF_MOVE)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent 3fedc6c commit 1e8640a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccutil/unicity_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class UnicityTable {
8080
int push_back(T object) {
8181
auto idx = get_index(object);
8282
if (idx == -1) {
83-
idx = table_.push_back(object);
83+
idx = table_.push_back(std::move(object));
8484
}
8585
return idx;
8686
}

0 commit comments

Comments
 (0)