From 8196a617453ad18c89e8898892aa748861592d81 Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Sat, 9 Dec 2006 01:57:58 +0000 Subject: [PATCH] Thrift TException Cleanup 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cpp/src/Thrift.h b/lib/cpp/src/Thrift.h index 347ec213..89b37d04 100644 --- a/lib/cpp/src/Thrift.h +++ b/lib/cpp/src/Thrift.h @@ -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()) { -- 2.17.1