diff options
author | Michi Henning <michi@zeroc.com> | 2002-08-12 02:18:24 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-08-12 02:18:24 +0000 |
commit | 0b1443640cd95bc0c22db88ab00f7948e955bcfb (patch) | |
tree | 2ad713c4e6dd0b49f4a092f8615f99b688854269 /cpp/src/slice2java/Gen.cpp | |
parent | Fixed a bug where we would move the buffer iterator beyond the buffer end. (diff) | |
download | ice-0b1443640cd95bc0c22db88ab00f7948e955bcfb.tar.bz2 ice-0b1443640cd95bc0c22db88ab00f7948e955bcfb.tar.xz ice-0b1443640cd95bc0c22db88ab00f7948e955bcfb.zip |
Changed nonmutating from metadata do keyword.
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 4e62239e824..b8408efe757 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -2067,9 +2067,7 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) out << eb; out << nl << "catch(IceInternal.NonRepeatable __ex)"; out << sb; - list<string> metaData = op->getMetaData(); - bool nonmutating = find(metaData.begin(), metaData.end(), "nonmutating") != metaData.end(); - if(nonmutating) + if(op->nonmutating()) { out << nl << "__cnt = __handleException(__ex.get(), __cnt);"; } @@ -3006,9 +3004,8 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p) writeDelegateThrowsClause(scope, throws); out << sb; list<string> metaData = op->getMetaData(); - bool nonmutating = find(metaData.begin(), metaData.end(), "nonmutating") != metaData.end(); out << nl << "IceInternal.Outgoing __out = getOutgoing(\"" << op->name() << "\", " - << (nonmutating ? "true" : "false") << ", __context);"; + << (op->nonmutating() ? "true" : "false") << ", __context);"; out << nl << "try"; out << sb; if(!inParams.empty()) @@ -3172,9 +3169,8 @@ Slice::Gen::DelegateDVisitor::visitClassDefStart(const ClassDefPtr& p) writeDelegateThrowsClause(scope, throws); out << sb; list<string> metaData = op->getMetaData(); - bool nonmutating = find(metaData.begin(), metaData.end(), "nonmutating") != metaData.end(); out << nl << "Ice.Current __current = new Ice.Current();"; - out << nl << "__initCurrent(__current, \"" << op->name() << "\", " << (nonmutating ? "true" : "false") + out << nl << "__initCurrent(__current, \"" << op->name() << "\", " << (op->nonmutating() ? "true" : "false") << ", __context);"; out << nl << "while(true)"; out << sb; |