diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 00:22:50 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2015-06-20 10:56:02 -0400 |
commit | 9c2ed42daa8fbbef4a919c21ec564e2db55e8d60 (patch) | |
tree | 3814f79c10d7b490948d8cb7b112ac1dd41ceff1 /src/mongo/rpc/legacy_request_builder.h | |
parent | 01965cf52bce6976637ecb8f4a622aeb05ab256a (diff) | |
download | mongo-9c2ed42daa8fbbef4a919c21ec564e2db55e8d60.tar.gz |
SERVER-18579: Clang-Format - reformat code, no comment reflow
Diffstat (limited to 'src/mongo/rpc/legacy_request_builder.h')
-rw-r--r-- | src/mongo/rpc/legacy_request_builder.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/mongo/rpc/legacy_request_builder.h b/src/mongo/rpc/legacy_request_builder.h index 83890df45e2..0d44c47a513 100644 --- a/src/mongo/rpc/legacy_request_builder.h +++ b/src/mongo/rpc/legacy_request_builder.h @@ -39,39 +39,39 @@ namespace mongo { namespace rpc { - class LegacyRequestBuilder : public RequestBuilderInterface { - public: - LegacyRequestBuilder(); - ~LegacyRequestBuilder() final; +class LegacyRequestBuilder : public RequestBuilderInterface { +public: + LegacyRequestBuilder(); + ~LegacyRequestBuilder() final; - LegacyRequestBuilder(std::unique_ptr<Message>); + LegacyRequestBuilder(std::unique_ptr<Message>); - LegacyRequestBuilder& setDatabase(StringData database) final; - LegacyRequestBuilder& setCommandName(StringData commandName) final; - LegacyRequestBuilder& setMetadata(BSONObj metadata) final; - LegacyRequestBuilder& setCommandArgs(BSONObj commandArgs) final; + LegacyRequestBuilder& setDatabase(StringData database) final; + LegacyRequestBuilder& setCommandName(StringData commandName) final; + LegacyRequestBuilder& setMetadata(BSONObj metadata) final; + LegacyRequestBuilder& setCommandArgs(BSONObj commandArgs) final; - LegacyRequestBuilder& addInputDocs(DocumentRange inputDocs) final; - LegacyRequestBuilder& addInputDoc(BSONObj inputDoc) final; + LegacyRequestBuilder& addInputDocs(DocumentRange inputDocs) final; + LegacyRequestBuilder& addInputDoc(BSONObj inputDoc) final; - State getState() const final; + State getState() const final; - Protocol getProtocol() const final; + Protocol getProtocol() const final; - std::unique_ptr<Message> done() final; + std::unique_ptr<Message> done() final; - private: - std::unique_ptr<Message> _message; - BufBuilder _builder{}; +private: + std::unique_ptr<Message> _message; + BufBuilder _builder{}; - // we need to stash this as we need commandArgs to - // upconvert. - BSONObj _metadata; + // we need to stash this as we need commandArgs to + // upconvert. + BSONObj _metadata; - std::string _ns{}; // copied to in setDatabase + std::string _ns{}; // copied to in setDatabase - State _state{State::kDatabase}; - }; + State _state{State::kDatabase}; +}; } // namespace rpc } // namespace mongo |