summaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-04-18 10:05:45 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-04-23 14:03:14 +0200
commite8b3a767a47daa723eb66feecda1bfd99f3fc225 (patch)
tree88a1f3dbef9f80c12162e56c366782a2c31e36d9 /storageapi
parentd781938ec3beb5f8158333c0e46b6b1bb88156c5 (diff)
override and optimise includes.
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/tests/mbusprot/storageprotocoltest.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
index bc71429032e..ed59b49ff04 100644
--- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
+++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
@@ -1,11 +1,5 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/document/base/testdocman.h>
-#include <vespa/document/document.h>
-#include <vespa/document/repo/documenttyperepo.h>
-#include <vespa/document/update/fieldpathupdates.h>
-#include <iomanip>
-#include <sstream>
#include <vespa/storageapi/message/persistence.h>
#include <vespa/storageapi/message/bucket.h>
#include <vespa/storageapi/message/bucketsplitting.h>
@@ -16,10 +10,16 @@
#include <vespa/storageapi/mbusprot/storageprotocol.h>
#include <vespa/storageapi/mbusprot/storagecommand.h>
#include <vespa/storageapi/mbusprot/storagereply.h>
+#include <vespa/storageapi/message/visitor.h>
+#include <vespa/document/base/testdocman.h>
+#include <vespa/document/document.h>
+#include <vespa/document/repo/documenttyperepo.h>
+#include <vespa/document/update/fieldpathupdates.h>
#include <vespa/vdstestlib/cppunit/macros.h>
#include <vespa/vespalib/util/growablebytebuffer.h>
-#include <vespa/storageapi/message/visitor.h>
#include <vespa/vespalib/objects/nbostream.h>
+#include <iomanip>
+#include <sstream>
using std::shared_ptr;
using document::ByteBuffer;
@@ -837,8 +837,7 @@ namespace {
api::StorageReply::UP makeReply() override;
- virtual void print(std::ostream& out, bool verbose, const std::string& indent) const override
- {
+ void print(std::ostream& out, bool verbose, const std::string& indent) const override {
out << "MyCommand()";
if (verbose) {
out << " : ";
@@ -850,8 +849,7 @@ namespace {
struct MyReply : public api::InternalReply {
MyReply(const MyCommand& cmd) : InternalReply(102, cmd) {}
- virtual void print(std::ostream& out, bool verbose, const std::string& indent) const override
- {
+ void print(std::ostream& out, bool verbose, const std::string& indent) const override {
out << "MyReply()";
if (verbose) {
out << " : ";