diff options
author | Michi Henning <michi@zeroc.com> | 2002-08-22 06:21:41 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-08-22 06:21:41 +0000 |
commit | 9c3bc85e2924c51af64b332c81a8ace3627206ee (patch) | |
tree | 2bbcd860fc983e9a2d97b28f57df8ab8c76d2ccf /cpp/src/slice2cpp/Gen.cpp | |
parent | Added post and prefix iterator operator++ tests (diff) | |
download | ice-9c3bc85e2924c51af64b332c81a8ace3627206ee.tar.bz2 ice-9c3bc85e2924c51af64b332c81a8ace3627206ee.tar.xz ice-9c3bc85e2924c51af64b332c81a8ace3627206ee.zip |
Added changes for idempotent.
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 53894d74b0c..9d3e232a34b 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1276,7 +1276,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << eb; C << nl << "catch(const ::IceInternal::NonRepeatable& __ex)"; C << sb; - if(p->nonmutating()) + if(p->idempotent()) { C << nl << "__handleException(*__ex.get(), __cnt);"; } @@ -1547,7 +1547,7 @@ Slice::Gen::DelegateMVisitor::visitOperation(const OperationPtr& p) C << sb; C << nl << "static const ::std::string __operation(\"" << p->name() << "\");"; C << nl << "::IceInternal::Outgoing __out(__connection, __reference, __operation, " - << (p->nonmutating() ? "true" : "false") << ", __context);"; + << (p->idempotent() ? "true" : "false") << ", __context);"; if(ret || !outParams.empty() || !throws.empty()) { C << nl << "::IceInternal::BasicStream* __is = __out.is();"; @@ -1732,7 +1732,7 @@ Slice::Gen::DelegateDVisitor::visitOperation(const OperationPtr& p) C << sp << nl << retS << nl << "IceDelegateD" << scoped << paramsDecl; C << sb; C << nl << "::Ice::Current __current;"; - C << nl << "__initCurrent(__current, \"" << p->name() << "\", " << (p->nonmutating() ? "true" : "false") + C << nl << "__initCurrent(__current, \"" << p->name() << "\", " << (p->idempotent() ? "true" : "false") << ", __context);"; C << nl << "while(true)"; C << sb; |