diff options
author | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2021-07-04 22:55:43 +0200 |
---|---|---|
committer | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2021-08-13 10:14:01 +0200 |
commit | 431368a368c189bb97cfe69ad3daf4d6640beae6 (patch) | |
tree | 7bef45ac3f6390f1d28b8be8cb9bb007b1951a50 /lib/cpp | |
parent | 82504b395e2d3e67f506a75ad51aa5734a9ad98a (diff) | |
download | thrift-431368a368c189bb97cfe69ad3daf4d6640beae6.tar.gz |
lib/cpp/src/thrift/transport/TBufferTransports.h: Minor whitespace changes
Diffstat (limited to 'lib/cpp')
-rw-r--r-- | lib/cpp/src/thrift/transport/TBufferTransports.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/cpp/src/thrift/transport/TBufferTransports.h b/lib/cpp/src/thrift/transport/TBufferTransports.h index 8f527bb20..3ef8d1f6a 100644 --- a/lib/cpp/src/thrift/transport/TBufferTransports.h +++ b/lib/cpp/src/thrift/transport/TBufferTransports.h @@ -150,7 +150,7 @@ protected: * performance-sensitive operation, so it is okay to just leave it to * the concrete class to set up pointers correctly. */ - TBufferBase(std::shared_ptr<TConfiguration> config = nullptr) + TBufferBase(std::shared_ptr<TConfiguration> config = nullptr) : TVirtualTransport(config), rBase_(nullptr), rBound_(nullptr), wBase_(nullptr), wBound_(nullptr) {} /// Convenience mutator for setting the read buffer. @@ -211,7 +211,7 @@ public: } /// Use specified read and write buffer sizes. - TBufferedTransport(std::shared_ptr<TTransport> transport, uint32_t rsz, uint32_t wsz, + TBufferedTransport(std::shared_ptr<TTransport> transport, uint32_t rsz, uint32_t wsz, std::shared_ptr<TConfiguration> config = nullptr) : TVirtualTransport(config), transport_(transport), @@ -506,7 +506,7 @@ public: * TAKE_OWNERSHIP: * TMemoryBuffer will become the "owner" of the buffer, * and will be responsible for freeing it. - * The membory must have been allocated with malloc. + * The memory must have been allocated with malloc. */ enum MemoryPolicy { OBSERVE = 1, COPY = 2, TAKE_OWNERSHIP = 3 }; @@ -515,8 +515,8 @@ public: * owned by the TMemoryBuffer object. */ TMemoryBuffer(std::shared_ptr<TConfiguration> config = nullptr) - : TVirtualTransport(config) { - initCommon(nullptr, defaultSize, true, 0); + : TVirtualTransport(config) { + initCommon(nullptr, defaultSize, true, 0); } /** @@ -525,9 +525,9 @@ public: * * @param sz The initial size of the buffer. */ - TMemoryBuffer(uint32_t sz, std::shared_ptr<TConfiguration> config = nullptr) - : TVirtualTransport(config) { - initCommon(nullptr, sz, true, 0); + TMemoryBuffer(uint32_t sz, std::shared_ptr<TConfiguration> config = nullptr) + : TVirtualTransport(config) { + initCommon(nullptr, sz, true, 0); } /** @@ -540,7 +540,7 @@ public: * @param sz The size of @c buf. * @param policy See @link MemoryPolicy @endlink . */ - TMemoryBuffer(uint8_t* buf, uint32_t sz, MemoryPolicy policy = OBSERVE, std::shared_ptr<TConfiguration> config = nullptr) + TMemoryBuffer(uint8_t* buf, uint32_t sz, MemoryPolicy policy = OBSERVE, std::shared_ptr<TConfiguration> config = nullptr) : TVirtualTransport(config) { if (buf == nullptr && sz != 0) { throw TTransportException(TTransportException::BAD_ARGS, |