diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-04-28 14:57:44 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-04-28 14:57:44 +0000 |
commit | 9370479561c4098775ca3c6ae3985eb563ce050d (patch) | |
tree | 2f62764f157bf2c132d4db9af4ef16c107df29cb /storage/src/tests/persistence/testandsettest.cpp | |
parent | 7befd97b93525c96ef1d90d8d94393f7e881ccc0 (diff) |
Implement hasReply avoid copying the shared_ptr just to peak at the result.
Diffstat (limited to 'storage/src/tests/persistence/testandsettest.cpp')
-rw-r--r-- | storage/src/tests/persistence/testandsettest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/tests/persistence/testandsettest.cpp b/storage/src/tests/persistence/testandsettest.cpp index 1e67e90b540..08555fe0627 100644 --- a/storage/src/tests/persistence/testandsettest.cpp +++ b/storage/src/tests/persistence/testandsettest.cpp @@ -257,7 +257,7 @@ document::Document::SP TestAndSetTest::retrieveTestDocument() auto tracker = thread->handleGet(get, context); assert(tracker->getResult() == api::ReturnCode::Result::OK); - auto & reply = static_cast<api::GetReply &>(*tracker->getReply()); + auto & reply = static_cast<api::GetReply &>(tracker->getReply()); assert(reply.wasFound()); return reply.getDocument(); |