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:
eaa61e4
)
[thrift] Make TTransportException::getType const throw()
author
dweatherford
<dev-null@apache.org>
Fri, 21 Dec 2007 07:07:31 +0000
(07:07 +0000)
committer
dweatherford
<dev-null@apache.org>
Fri, 21 Dec 2007 07:07:31 +0000
(07:07 +0000)
Summary: const so that catching via "catch (const TTransportException& e)" works
properly, and throw() for good convention.
Reviewed By: mcslee
Test Plan: still compiles
Revert: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665403
13f79535
-47bb-0310-9956-
ffa450edef68
lib/cpp/src/transport/TTransportException.h
patch
|
blob
|
history
diff --git
a/lib/cpp/src/transport/TTransportException.h
b/lib/cpp/src/transport/TTransportException.h
index
c21719b
..
39c65dd
100644
(file)
--- a/
lib/cpp/src/transport/TTransportException.h
+++ b/
lib/cpp/src/transport/TTransportException.h
@@
-69,7
+69,7
@@
class TTransportException : public facebook::thrift::TException {
*
* @return Error code
*/
- TTransportExceptionType getType() {
+ TTransportExceptionType getType()
const throw()
{
return type_;
}