From 2d11cc25c1f51f0e36c703d9e28aed7f894ea5ae 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 2d55dbfe..52bc899c 100644 --- a/src/threaded_queue.hh +++ b/src/threaded_queue.hh @@ -135,7 +135,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_); @@ -150,7 +150,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_);