From 9f25474e735ef51a55bca7be86e1699cc79f9dda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Tue, 18 Jun 2019 08:45:20 +0200 Subject: [PATCH] threaded_queue.hh: fix -Wpessimizing-move (#409) --- src/threaded_queue.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/threaded_queue.hh b/src/threaded_queue.hh index 103027aa..a7ffe9df 100644 --- a/src/threaded_queue.hh +++ b/src/threaded_queue.hh @@ -147,7 +147,7 @@ public: auto val = std::move(q->front()); q->pop_front(); --total_count_; - return std::move(val); + return val; }; if (!priority_.empty()) return execute(&priority_); @@ -162,7 +162,7 @@ public: auto val = std::move(q->front()); q->pop_front(); --total_count_; - return std::move(val); + return val; }; if (priority_.size()) return execute(&priority_);