From: myoungwon oh Date: Fri, 15 Sep 2017 16:04:43 +0000 (+0900) Subject: src/test: fix move semantics X-Git-Tag: v13.0.1~573^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e12935240ad79d330ef4b6d1baa03a6135ba603;p=ceph.git src/test: fix move semantics Signed-off-by: Myoungwon Oh --- diff --git a/src/test/common/test_mclock_priority_queue.cc b/src/test/common/test_mclock_priority_queue.cc index 92caec3a8d0..3ffb2e174dc 100644 --- a/src/test/common/test_mclock_priority_queue.cc +++ b/src/test/common/test_mclock_priority_queue.cc @@ -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(); }