diff options
author | Benoit Foucher <benoit@zeroc.com> | 2007-01-23 14:42:41 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2007-01-23 14:42:41 +0000 |
commit | 59e520bae09191f5cb317fd4a7fbe0e1e89515f1 (patch) | |
tree | 8595d43d698c05cb393009eb1a7fc6971a5aeb26 /cpp/src/slice2cpp/Gen.cpp | |
parent | Made batch auto-flush default (diff) | |
download | ice-59e520bae09191f5cb317fd4a7fbe0e1e89515f1.tar.bz2 ice-59e520bae09191f5cb317fd4a7fbe0e1e89515f1.tar.xz ice-59e520bae09191f5cb317fd4a7fbe0e1e89515f1.zip |
Fixed bug 1693
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 1d3dbf6f8f5..f10b279cefd 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1967,13 +1967,14 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << nl << "int __cnt = 0;"; C << nl << "while(true)"; C << sb; + C << nl << "::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase;"; C << nl << "try"; C << sb; if(p->returnsData()) { C << nl << "__checkTwowayOnly(" << p->flattenedScope() + p->name() + "_name);"; } - C << nl << "::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase = __getDelegate();"; + C << nl << "__delBase = __getDelegate();"; C << nl << "::IceDelegate" << thisPointer << " __del = dynamic_cast< ::IceDelegate" << thisPointer << ">(__delBase.get());"; C << nl; @@ -1991,16 +1992,16 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << sb; if(p->mode() == Operation::Idempotent || p->mode() == Operation::Nonmutating) { - C << nl << "__handleExceptionWrapperRelaxed(__ex, __cnt);"; + C << nl << "__handleExceptionWrapperRelaxed(__delBase, __ex, __cnt);"; } else { - C << nl << "__handleExceptionWrapper(__ex);"; + C << nl << "__handleExceptionWrapper(__delBase, __ex);"; } C << eb; C << nl << "catch(const ::Ice::LocalException& __ex)"; C << sb; - C << nl << "__handleException(__ex, __cnt);"; + C << nl << "__handleException(__delBase, __ex, __cnt);"; C << eb; C << eb; C << eb; |