diff options
Diffstat (limited to 'cpp/src/slice2javae/Gen.cpp')
-rw-r--r-- | cpp/src/slice2javae/Gen.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/slice2javae/Gen.cpp b/cpp/src/slice2javae/Gen.cpp index 69e06826012..b43c0f1049d 100644 --- a/cpp/src/slice2javae/Gen.cpp +++ b/cpp/src/slice2javae/Gen.cpp @@ -371,7 +371,6 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) // // The operation is not defined in this class. // - ClassList bases = p->bases(); if(!bases.empty()) { // @@ -843,8 +842,8 @@ Slice::Gen::OpsVisitor::writeOperations(const ClassDefPtr& p, bool noCurrent) OperationPtr op = *r; ContainerPtr container = op->container(); ClassDefPtr cl = ClassDefPtr::dynamicCast(container); - string name = op->name(); - + string opname = op->name(); + TypePtr ret; vector<string> params; @@ -856,7 +855,7 @@ Slice::Gen::OpsVisitor::writeOperations(const ClassDefPtr& p, bool noCurrent) ExceptionList throws = op->throws(); throws.sort(); throws.unique(); - out << sp << nl << retS << ' ' << fixKwd(name) << spar << params; + out << sp << nl << retS << ' ' << fixKwd(opname) << spar << params; if(!noCurrent && !p->isLocal()) { out << "Ice.Current __current"; |