C++ Thrift coding style changes
Summary: Make underscore for class members consistent
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664818 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/Thrift.h b/lib/cpp/src/Thrift.h
index 38226dc..c21b0a5 100644
--- a/lib/cpp/src/Thrift.h
+++ b/lib/cpp/src/Thrift.h
@@ -13,13 +13,19 @@
namespace facebook { namespace thrift {
class Exception : public std::exception {
-private:
- const std::string _message;
-
public:
- Exception(const std::string message) : _message(message) {}
+ Exception(const std::string message) :
+ message_(message) {}
+
~Exception() throw () {}
- const char* what() {return _message.c_str();}
+
+ const char* what() {
+ return message_.c_str();
+ }
+
+private:
+ const std::string message_;
+
};
}} // facebook::thrift