You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ra...@apache.org on 2015/03/03 17:20:11 UTC

thrift git commit: THRIFT-3020:Repair CPP11 init of member in TFramedTrans Client: CPP Patch: Zachary Sims

Repository: thrift
Updated Branches:
  refs/heads/master f0e63317c -> f702fed42


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....@qsr.com.au>
Date: 2015-03-03T05:12:31Z
Removes C++11-style field initialisation in TBufferTransports.h


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/f702fed4
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/f702fed4
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/f702fed4

Branch: refs/heads/master
Commit: f702fed427b1bd5443ae11ab591e313c269ab5b6
Parents: f0e6331
Author: Randy Abernethy <ra...@apache.org>
Authored: Tue Mar 3 08:14:12 2015 -0800
Committer: Randy Abernethy <ra...@apache.org>
Committed: Tue Mar 3 08:14:12 2015 -0800

----------------------------------------------------------------------
 lib/cpp/src/thrift/transport/TBufferTransports.h | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/f702fed4/lib/cpp/src/thrift/transport/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 @@ public:
       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 @@ public:
       wBufSize_(sz),
       rBuf_(),
       wBuf_(new uint8_t[wBufSize_]),
-      bufReclaimThresh_(bufReclaimThresh) {
+      bufReclaimThresh_(bufReclaimThresh),
+      maxFrameSize_(DEFAULT_MAX_FRAME_SIZE) {
     initPointers();
   }
 
@@ -401,7 +403,7 @@ protected:
   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_;
 };
 
 /**