diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-07-27 01:47:43 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-07-27 01:47:43 +0000 |
commit | 6d1e32eebbbe320b3a1fe33552824a3f8982b6a0 (patch) | |
tree | ec67ad494b59bd2e8028f5b7e5b886394cb4e3b9 /cpp/src/slice2javae/Gen.cpp | |
parent | Minor fix (diff) | |
download | ice-6d1e32eebbbe320b3a1fe33552824a3f8982b6a0.tar.bz2 ice-6d1e32eebbbe320b3a1fe33552824a3f8982b6a0.tar.xz ice-6d1e32eebbbe320b3a1fe33552824a3f8982b6a0.zip |
Partial fix for bug #1257: deprecating nonmutating
Diffstat (limited to 'cpp/src/slice2javae/Gen.cpp')
-rw-r--r-- | cpp/src/slice2javae/Gen.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/slice2javae/Gen.cpp b/cpp/src/slice2javae/Gen.cpp index b8ad345a98d..165d1cc8750 100644 --- a/cpp/src/slice2javae/Gen.cpp +++ b/cpp/src/slice2javae/Gen.cpp @@ -32,10 +32,10 @@ using IceUtil::spar; using IceUtil::epar; static string -sliceModeToIceMode(const OperationPtr& op) +sliceModeToIceMode(Operation::Mode opMode) { string mode; - switch(op->mode()) + switch(opMode) { case Operation::Normal: { @@ -459,7 +459,7 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) int iter; - out << nl << "__checkMode(" << sliceModeToIceMode(op) << ", __current.mode);"; + out << nl << "__checkMode(" << sliceModeToIceMode(op->mode()) << ", __current.mode);"; if(!inParams.empty()) { out << nl << "IceInternal.BasicStream __is = __in.is();"; @@ -2273,7 +2273,7 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p) } out << nl << "Ice.Connection __connection = ice_getConnection();"; out << nl << "IceInternal.Outgoing __og = __connection.getOutgoing(_reference, \"" << op->name() << "\", " - << sliceModeToIceMode(op) << ", __ctx);"; + << sliceModeToIceMode(op->sendMode()) << ", __ctx);"; out << nl << "try"; out << sb; if(!inParams.empty()) |