diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-02-03 10:42:29 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-02-03 10:42:29 +0100 |
commit | 18a6720fcc3ece576f5fb26283e239cda2bebadd (patch) | |
tree | a7d9de0acab9e092943fb182fa880b2c4b950db6 /cpp/test/Ice/interceptor/InterceptorI.cpp | |
parent | ICE-6861 - Java stream API changes (diff) | |
download | ice-18a6720fcc3ece576f5fb26283e239cda2bebadd.tar.bz2 ice-18a6720fcc3ece576f5fb26283e239cda2bebadd.tar.xz ice-18a6720fcc3ece576f5fb26283e239cda2bebadd.zip |
Refactored invocation code to better suite new C++11 mapping
Diffstat (limited to 'cpp/test/Ice/interceptor/InterceptorI.cpp')
-rw-r--r-- | cpp/test/Ice/interceptor/InterceptorI.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cpp/test/Ice/interceptor/InterceptorI.cpp b/cpp/test/Ice/interceptor/InterceptorI.cpp index e618db8d34c..99807d8c0d8 100644 --- a/cpp/test/Ice/interceptor/InterceptorI.cpp +++ b/cpp/test/Ice/interceptor/InterceptorI.cpp @@ -19,13 +19,13 @@ InterceptorI::InterceptorI(const Ice::ObjectPtr& servant) : { } - -Ice::DispatchStatus + +Ice::DispatchStatus InterceptorI::dispatch(Ice::Request& request) { Ice::Current& current = const_cast<Ice::Current&>(request.getCurrent()); _lastOperation = current.operation; - + if(_lastOperation == "addWithRetry") { for(int i = 0; i < 10; ++i) @@ -42,26 +42,26 @@ InterceptorI::dispatch(Ice::Request& request) // } } - + current.ctx["retry"] = "no"; } _lastStatus = _servant->ice_dispatch(request); return _lastStatus; } - -Ice::DispatchStatus + +Ice::DispatchStatus InterceptorI::getLastStatus() const { return _lastStatus; } -const std::string& +const std::string& InterceptorI::getLastOperation() const { return _lastOperation; } - -void + +void InterceptorI::clear() { _lastStatus = Ice::DispatchAsync; |