Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
25b2936
)
Thrift TException Cleanup
author
Martin Kraemer
<martin@apache.org>
Sat, 9 Dec 2006 01:57:58 +0000
(
01:57
+0000)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/lib/cpp/src/Thrift.h
b/lib/cpp/src/Thrift.h
index
347ec21
..
89b37d0
100644
(file)
--- 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()) {