You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ns...@apache.org on 2016/03/29 19:48:41 UTC

[7/9] thrift git commit: THRIFT-3758 TApplicationException::getType and TProtocolException::getType should be const

THRIFT-3758 TApplicationException::getType and TProtocolException::getType should be const

This closes #963


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

Branch: refs/heads/master
Commit: d42d8be78fff22fab9f524d4766b61bb9053fd69
Parents: abbc8d0
Author: tpcwang <tp...@gmail.com>
Authored: Thu Mar 24 09:56:10 2016 -0700
Committer: Nobuaki Sukegawa <ns...@apache.org>
Committed: Tue Mar 29 12:03:34 2016 +0900

----------------------------------------------------------------------
 lib/cpp/src/thrift/TApplicationException.h       | 2 +-
 lib/cpp/src/thrift/protocol/TProtocolException.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/d42d8be7/lib/cpp/src/thrift/TApplicationException.h
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/TApplicationException.h b/lib/cpp/src/thrift/TApplicationException.h
index 0de5391..81d9424 100644
--- a/lib/cpp/src/thrift/TApplicationException.h
+++ b/lib/cpp/src/thrift/TApplicationException.h
@@ -65,7 +65,7 @@ public:
    *
    * @return Error code
    */
-  TApplicationExceptionType getType() { return type_; }
+  TApplicationExceptionType getType() const { return type_; }
 
   virtual const char* what() const throw() {
     if (message_.empty()) {

http://git-wip-us.apache.org/repos/asf/thrift/blob/d42d8be7/lib/cpp/src/thrift/protocol/TProtocolException.h
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/protocol/TProtocolException.h b/lib/cpp/src/thrift/protocol/TProtocolException.h
index 18a8ed0..6e536b4 100644
--- a/lib/cpp/src/thrift/protocol/TProtocolException.h
+++ b/lib/cpp/src/thrift/protocol/TProtocolException.h
@@ -67,7 +67,7 @@ public:
    *
    * @return Error code
    */
-  TProtocolExceptionType getType() { return type_; }
+  TProtocolExceptionType getType() const { return type_; }
 
   virtual const char* what() const throw() {
     if (message_.empty()) {