summaryrefslogtreecommitdiff
path: root/lib/cpp
diff options
context:
space:
mode:
authorSebastian Zenker <sebastian.zenker@gmx.de>2016-01-18 08:51:30 +0100
committerNobuaki Sukegawa <nsuke@apache.org>2016-01-19 02:48:07 +0900
commit9c4193d4fc0ed66f989c2e5987f09abfe2340c73 (patch)
treef139e9794c8d29215667b8ce42ec7598966540c7 /lib/cpp
parent643f1eeee41c975c77739ea6ad70e326b9065612 (diff)
downloadthrift-9c4193d4fc0ed66f989c2e5987f09abfe2340c73.tar.gz
THRIFT-3565: C++: declared T{Async}Processor::getEventHandler() as const member functions
Client: C++ Patch: Sebastian Zenker This closes #803
Diffstat (limited to 'lib/cpp')
-rw-r--r--lib/cpp/src/thrift/TProcessor.h2
-rw-r--r--lib/cpp/src/thrift/async/TAsyncProcessor.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/cpp/src/thrift/TProcessor.h b/lib/cpp/src/thrift/TProcessor.h
index d8f86c42e..4a0604eac 100644
--- a/lib/cpp/src/thrift/TProcessor.h
+++ b/lib/cpp/src/thrift/TProcessor.h
@@ -150,7 +150,7 @@ public:
return process(io, io, connectionContext);
}
- boost::shared_ptr<TProcessorEventHandler> getEventHandler() { return eventHandler_; }
+ boost::shared_ptr<TProcessorEventHandler> getEventHandler() const { return eventHandler_; }
void setEventHandler(boost::shared_ptr<TProcessorEventHandler> eventHandler) {
eventHandler_ = eventHandler;
diff --git a/lib/cpp/src/thrift/async/TAsyncProcessor.h b/lib/cpp/src/thrift/async/TAsyncProcessor.h
index ee305a2ff..01a34c4f4 100644
--- a/lib/cpp/src/thrift/async/TAsyncProcessor.h
+++ b/lib/cpp/src/thrift/async/TAsyncProcessor.h
@@ -47,7 +47,7 @@ public:
return process(_return, io, io);
}
- boost::shared_ptr<TProcessorEventHandler> getEventHandler() { return eventHandler_; }
+ boost::shared_ptr<TProcessorEventHandler> getEventHandler() const { return eventHandler_; }
void setEventHandler(boost::shared_ptr<TProcessorEventHandler> eventHandler) {
eventHandler_ = eventHandler;