From dacbee68444aeded794ff445559367b538113c91 Mon Sep 17 00:00:00 2001 From: Zachary Sims Date: Tue, 3 Mar 2015 16:12:31 +1100 Subject: [PATCH] Removes C++11-style field initialisation in TBufferTransports.h --- lib/cpp/src/thrift/transport/TBufferTransports.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/cpp/src/thrift/transport/TBufferTransports.h b/lib/cpp/src/thrift/transport/TBufferTransports.h index 9b5d51fa278..eb08d62c422 100644 --- a/lib/cpp/src/thrift/transport/TBufferTransports.h +++ b/lib/cpp/src/thrift/transport/TBufferTransports.h @@ -314,7 +314,8 @@ class TFramedTransport : public TVirtualTransport wBufSize_(DEFAULT_BUFFER_SIZE), rBuf_(), wBuf_(new uint8_t[wBufSize_]), - bufReclaimThresh_((std::numeric_limits::max)()) { + bufReclaimThresh_((std::numeric_limits::max)()), + maxFrameSize_(DEFAULT_MAX_FRAME_SIZE) { initPointers(); } @@ -326,7 +327,8 @@ class TFramedTransport : public TVirtualTransport wBufSize_(sz), rBuf_(), wBuf_(new uint8_t[wBufSize_]), - bufReclaimThresh_(bufReclaimThresh) { + bufReclaimThresh_(bufReclaimThresh), + maxFrameSize_(DEFAULT_MAX_FRAME_SIZE) { initPointers(); } @@ -401,7 +403,7 @@ class TFramedTransport : public TVirtualTransport boost::scoped_array rBuf_; boost::scoped_array wBuf_; uint32_t bufReclaimThresh_; - uint32_t maxFrameSize_ = DEFAULT_MAX_FRAME_SIZE; + uint32_t maxFrameSize_; }; /**