From 0c312644e69c084152c5a45a5a8dc7d92eb05a09 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Fri, 17 Jul 2020 02:51:16 -0400 Subject: [PATCH] test/cls_queue: Remove pessimizing move MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit …and fix filetype in modeline. Signed-off-by: Adam C. Emerson --- src/test/cls_queue/test_cls_queue.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/cls_queue/test_cls_queue.cc b/src/test/cls_queue/test_cls_queue.cc index 1aaaaf49238c0..4f0b0d0500392 100644 --- a/src/test/cls_queue/test_cls_queue.cc +++ b/src/test/cls_queue/test_cls_queue.cc @@ -1,4 +1,4 @@ -// -*- mode:C; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- +// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- // vim: ts=8 sw=2 smarttab #include "include/types.h" @@ -411,10 +411,10 @@ TEST_F(TestClsQueue, MultiProducer) std::vector producers(max_producer_count); for (auto& p : producers) { - p = std::move(std::thread([this, &queue_name, &producer_count] { - test_enqueue(queue_name, number_of_ops, number_of_elements, 0); - --producer_count; - })); + p = std::thread([this, &queue_name, &producer_count] { + test_enqueue(queue_name, number_of_ops, number_of_elements, 0); + --producer_count; + }); } auto consume_count = 0U; -- 2.39.5