diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-27 15:12:43 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-08-27 15:12:43 +0000 |
commit | 6d26d9a1fb8ccdcc2b930f9ce3561820fb84acae (patch) | |
tree | f8acec783931ca4517cda8e5d46f2e7f2d4b971e /searchcore/src/tests/proton/server/feedstates_test.cpp | |
parent | 2a9d62ac9c68731a46f53a6b80224c053a7b01ec (diff) |
Style chnages
Diffstat (limited to 'searchcore/src/tests/proton/server/feedstates_test.cpp')
-rw-r--r-- | searchcore/src/tests/proton/server/feedstates_test.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searchcore/src/tests/proton/server/feedstates_test.cpp b/searchcore/src/tests/proton/server/feedstates_test.cpp index fd1e24c1f17..15083975824 100644 --- a/searchcore/src/tests/proton/server/feedstates_test.cpp +++ b/searchcore/src/tests/proton/server/feedstates_test.cpp @@ -1,7 +1,6 @@ // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. // Unit tests for feedstates. - #include <vespa/document/base/documentid.h> #include <vespa/document/base/testdocrepo.h> #include <vespa/document/bucket/bucketid.h> @@ -102,11 +101,10 @@ struct RemoveOperationContext RemoveOperationContext::RemoveOperationContext(search::SerialNum serial) : doc_id("id:ns:doctypename::bar"), op(BucketFactory::getBucketId(doc_id), Timestamp(10), doc_id), - str(), packet() + str(), packet(std::make_unique<Packet>(0xf000)) { op.serialize(str); ConstBufferRef buf(str.data(), str.wp()); - packet = std::make_unique<Packet>(); packet->add(Packet::Entry(serial, FeedOperation::REMOVE, buf)); } RemoveOperationContext::~RemoveOperationContext() = default; |