From 1e8640a02ef6db6dbcb008df804e34243ba45a15 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 10 Nov 2024 11:22:49 +0100 Subject: [PATCH] Fix CID 1534938 (COPY_INSTEAD_OF_MOVE) Signed-off-by: Stefan Weil --- src/ccutil/unicity_table.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ccutil/unicity_table.h b/src/ccutil/unicity_table.h index 54f740a3..905d34cc 100644 --- a/src/ccutil/unicity_table.h +++ b/src/ccutil/unicity_table.h @@ -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; }