THRIFT-3020:Repair CPP11 init of member in TFramedTrans
Client: CPP
Patch: Zachary Sims
Github Pull Request:
This closes #384
commit dacbee68444aeded794ff445559367b538113c91
Author: Zachary Sims <z.sims@qsr.com.au>
Date: 2015-03-03T05:12:31Z
Removes C++11-style field initialisation in TBufferTransports.h
diff --git a/lib/cpp/src/thrift/transport/TBufferTransports.h b/lib/cpp/src/thrift/transport/TBufferTransports.h
index 9b5d51f..eb08d62 100644
--- a/lib/cpp/src/thrift/transport/TBufferTransports.h
+++ b/lib/cpp/src/thrift/transport/TBufferTransports.h
@@ -314,7 +314,8 @@
wBufSize_(DEFAULT_BUFFER_SIZE),
rBuf_(),
wBuf_(new uint8_t[wBufSize_]),
- bufReclaimThresh_((std::numeric_limits<uint32_t>::max)()) {
+ bufReclaimThresh_((std::numeric_limits<uint32_t>::max)()),
+ maxFrameSize_(DEFAULT_MAX_FRAME_SIZE) {
initPointers();
}
@@ -326,7 +327,8 @@
wBufSize_(sz),
rBuf_(),
wBuf_(new uint8_t[wBufSize_]),
- bufReclaimThresh_(bufReclaimThresh) {
+ bufReclaimThresh_(bufReclaimThresh),
+ maxFrameSize_(DEFAULT_MAX_FRAME_SIZE) {
initPointers();
}
@@ -401,7 +403,7 @@
boost::scoped_array<uint8_t> rBuf_;
boost::scoped_array<uint8_t> wBuf_;
uint32_t bufReclaimThresh_;
- uint32_t maxFrameSize_ = DEFAULT_MAX_FRAME_SIZE;
+ uint32_t maxFrameSize_;
};
/**