diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-04-28 15:29:07 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-04-28 15:29:07 +0000 |
commit | 9cd9ec58087661a1b55d97234d33da31d31e8158 (patch) | |
tree | 9d4726f8361a11fba5b9e484bab16b901eebc7dd /storage/src/tests/persistence/processalltest.cpp | |
parent | 87789913698f4fd12c4bc81b6a731325f32fce02 (diff) |
Use rvalue qualifier
Diffstat (limited to 'storage/src/tests/persistence/processalltest.cpp')
-rw-r--r-- | storage/src/tests/persistence/processalltest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/src/tests/persistence/processalltest.cpp b/storage/src/tests/persistence/processalltest.cpp index f7f52761609..5462b4a5b0a 100644 --- a/storage/src/tests/persistence/processalltest.cpp +++ b/storage/src/tests/persistence/processalltest.cpp @@ -29,7 +29,7 @@ TEST_F(ProcessAllHandlerTest, remove_location) { "DocEntry(2345, 1, id:mail:testdoctype1:n=4:4008.html)\n", dumpBucket(bucketId)); - auto reply = std::dynamic_pointer_cast<api::RemoveLocationReply>(tracker->stealReplySP()); + auto reply = std::dynamic_pointer_cast<api::RemoveLocationReply>(std::move(*tracker).stealReplySP()); ASSERT_TRUE(reply); EXPECT_EQ(2u, reply->documents_removed()); } @@ -62,7 +62,7 @@ TEST_F(ProcessAllHandlerTest, remove_location_document_subset) { "DocEntry(109, 0, Doc(id:mail:testdoctype1:n=4:6925.html))\n", dumpBucket(bucketId)); - auto reply = std::dynamic_pointer_cast<api::RemoveLocationReply>(tracker->stealReplySP()); + auto reply = std::dynamic_pointer_cast<api::RemoveLocationReply>(std::move(*tracker).stealReplySP()); ASSERT_TRUE(reply); EXPECT_EQ(5u, reply->documents_removed()); } |