diff options
author | Marc Laukien <marc@zeroc.com> | 2001-08-10 20:59:22 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-08-10 20:59:22 +0000 |
commit | 7377a861663e60c6e0155edbdf6b544d1dba0502 (patch) | |
tree | 80a44155233c491841c0036d48346f4850e875d9 /cpp/src/slice2cpp/Gen.cpp | |
parent | fixes (diff) | |
download | ice-7377a861663e60c6e0155edbdf6b544d1dba0502.tar.bz2 ice-7377a861663e60c6e0155edbdf6b544d1dba0502.tar.xz ice-7377a861663e60c6e0155edbdf6b544d1dba0502.zip |
nonmutating
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index f33a3e97844..161714d44a3 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -704,8 +704,14 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << eb; C << nl << "catch (const ::IceInternal::NonRepeatable& __ex)"; C << sb; -// C << nl << "__handleException(*__ex.get(), __cnt);"; - C << nl << "__ex.raise();"; + if (p->nonmutating()) + { + C << nl << "__handleException(*__ex.get(), __cnt);"; + } + else + { + C << nl << "__ex.raise();"; + } C << eb; C << nl << "catch (const ::Ice::LocalException& __ex)"; C << sb; |