diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-23 19:54:57 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2020-11-23 19:54:57 +0000 |
commit | 45ef55eb4c13ed89391b4c61f81c719fc4f2033a (patch) | |
tree | 03f6bd5476689e6fb921213fe49addac06073014 /storageapi | |
parent | 66445f857b81b051c1572409ce19d032cb03024c (diff) |
- Reorder members for compactness.
- Avoid needing the definition of Error everywhere.
- use std::make_xxx and other c++11 constructs.
Diffstat (limited to 'storageapi')
-rw-r--r-- | storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.cpp | 6 | ||||
-rw-r--r-- | storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.h | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.cpp b/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.cpp index b6d0d297a69..ee577881d82 100644 --- a/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.cpp +++ b/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.cpp @@ -5,8 +5,7 @@ #include "storagecommand.h" #include "serializationhelper.h" -namespace storage { -namespace mbusprot { +namespace storage::mbusprot { using documentapi::TestAndSetCondition; @@ -62,5 +61,4 @@ void ProtocolSerialization5_2::encodeTasCondition(GBBuf & buf, const api::Storag buf.putString(cmd.getCondition().getSelection()); } -} // mbusprot -} // storage +} diff --git a/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.h b/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.h index 42e9c17e192..f6f9443248c 100644 --- a/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.h +++ b/storageapi/src/vespa/storageapi/mbusprot/protocolserialization5_2.h @@ -7,8 +7,7 @@ #include <vespa/vespalib/util/growablebytebuffer.h> #include <vespa/storageapi/message/persistence.h> -namespace storage { -namespace mbusprot { +namespace storage::mbusprot { class ProtocolSerialization5_2 : public ProtocolSerialization5_1 { @@ -31,5 +30,4 @@ protected: static void encodeTasCondition(GBBuf & buf, const api::StorageCommand & cmd); }; -} // mbusprot -} // storage +} |