diff --git a/src/common/threadpool.cpp b/src/common/threadpool.cpp index 2748c798c..38f52c45b 100644 --- a/src/common/threadpool.cpp +++ b/src/common/threadpool.cpp @@ -145,7 +145,7 @@ void threadpool::run(bool flush) { if (!running) break; active++; - e = queue.front(); + e = std::move(queue.front()); queue.pop_front(); lock.unlock(); ++depth;