Thrift TException Cleanup
authorMartin Kraemer <martin@apache.org>
Sat, 9 Dec 2006 01:57:58 +0000 (01:57 +0000)
committerMartin Kraemer <martin@apache.org>
Sat, 9 Dec 2006 01:57:58 +0000 (01:57 +0000)
Summary:
Destructors should be virtual or declared protected.

Reviewed By: mcslee

Revert Plan: revertible

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664892 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/Thrift.h

index 347ec21..89b37d0 100644 (file)
@@ -21,7 +21,7 @@ public:
   TException(const std::string message) :
     message_(message) {}
 
-  ~TException() throw() {}
+  virtual ~TException() throw() {}
 
   const char* what() const throw() {
     if (message_.empty()) {