]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
src/test: fix move semantics
authormyoungwon oh <omwmw@sk.com>
Fri, 15 Sep 2017 16:04:43 +0000 (01:04 +0900)
committermyoungwon oh <omwmw@sk.com>
Tue, 10 Oct 2017 12:37:10 +0000 (21:37 +0900)
Signed-off-by: Myoungwon Oh <omwmw@sk.com>
src/test/common/test_mclock_priority_queue.cc

index 92caec3a8d090130134330b4512f8de2d9d169fc..3ffb2e174dcd3b7233a4fdee1a406810b990b943 100644 (file)
@@ -200,9 +200,9 @@ TEST(mClockPriorityQueue, EnqueuFront)
   for (uint i = 0; i < 4; ++i) {
     Request& r = reqs.front();
     if (r.value > 5) {
-      q.enqueue_strict_front(r.value == 6 ? c2 : 1, r.value, r);
+      q.enqueue_strict_front(r.value == 6 ? c2 : 1, r.value, std::move(r));
     } else {
-      q.enqueue_front(r.value <= 2 ? c1 : c2, r.value, 0, r);
+      q.enqueue_front(r.value <= 2 ? c1 : c2, r.value, 0, std::move(r));
     }
     reqs.pop_front();
   }