diff options
author | Jose <jose@zeroc.com> | 2013-04-11 22:01:55 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2013-04-11 22:01:55 +0200 |
commit | 6b8de91c8fb98190d20c3b65c5e810a1b8ed21f6 (patch) | |
tree | 7b4834d9ebc6ca7c2abb5c461a5fa33a9d12805d /cpp/src/slice2cpp/Gen.cpp | |
parent | ICE-5324 - invalid C# code for struct with default values (diff) | |
download | ice-6b8de91c8fb98190d20c3b65c5e810a1b8ed21f6.tar.bz2 ice-6b8de91c8fb98190d20c3b65c5e810a1b8ed21f6.tar.xz ice-6b8de91c8fb98190d20c3b65c5e810a1b8ed21f6.zip |
Fixed (ICE-5327) - Using completed or sent as variable names causes badness
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 36317ff4565..6085dc7bc2c 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1858,66 +1858,66 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) { H << retInS; } - H << outDecls << epar << ">& response, " - << "const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception = " + H << outDecls << epar << ">& __response, " + << "const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception = " "::IceInternal::Function<void (const ::Ice::Exception&)>(), " - << "const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>()" << epar; + << "const ::IceInternal::Function<void (bool)>& __sent = ::IceInternal::Function<void (bool)>()" << epar; H << sb; if(p->returnsData()) { - H << nl << "return __begin_" << name << spar << argsAMI << "0, response, exception, sent" << epar << ";"; + H << nl << "return __begin_" << name << spar << argsAMI << "0, __response, __exception, __sent" << epar << ";"; } else { H << nl << "return begin_" << name << spar << argsAMI - << "0, new ::IceInternal::Cpp11FnOnewayCallbackNC(response, exception, sent)" << epar << ";"; + << "0, new ::IceInternal::Cpp11FnOnewayCallbackNC(__response, __exception, __sent)" << epar << ";"; } H << eb; H << nl << "::Ice::AsyncResultPtr"; H << nl << "begin_" << name << spar << paramsDeclAMI - << "const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed" - << "const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent = " + << "const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& __completed" + << "const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& __sent = " "::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>()" << epar; H << sb; - H << nl << "return begin_" << name << spar << argsAMI << "0, ::Ice::newCallback(completed, sent), 0" << epar << ";"; + H << nl << "return begin_" << name << spar << argsAMI << "0, ::Ice::newCallback(__completed, __sent), 0" << epar << ";"; H << eb; H << nl << "::Ice::AsyncResultPtr"; - H << nl << "begin_" << name << spar << paramsDeclAMI << "const ::Ice::Context& ctx" + H << nl << "begin_" << name << spar << paramsDeclAMI << "const ::Ice::Context& __ctx" << "const ::IceInternal::Function<void " << spar; if(!retInS.empty()) { H << retInS; } - H << outDecls << epar << ">& response, " - << "const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception = " + H << outDecls << epar << ">& __response, " + << "const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception = " "::IceInternal::Function<void (const ::Ice::Exception&)>(), " - << "const ::IceInternal::Function<void (bool)>& sent = ::IceInternal::Function<void (bool)>()" << epar; + << "const ::IceInternal::Function<void (bool)>& __sent = ::IceInternal::Function<void (bool)>()" << epar; H << sb; if(p->returnsData()) { - H << nl << "return __begin_" << name << spar << argsAMI << "&ctx, response, exception, sent" << epar << ";"; + H << nl << "return __begin_" << name << spar << argsAMI << "&__ctx, __response, __exception, __sent" << epar << ";"; } else { H << nl << "return begin_" << name << spar << argsAMI - << "&ctx, new ::IceInternal::Cpp11FnOnewayCallbackNC(response, exception, sent), 0" << epar << ";"; + << "&__ctx, new ::IceInternal::Cpp11FnOnewayCallbackNC(__response, __exception, __sent), 0" << epar << ";"; } H << eb; H << nl << "::Ice::AsyncResultPtr"; H << nl << "begin_" << name << spar << paramsDeclAMI - << "const ::Ice::Context& ctx" - << "const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& completed" - << "const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& sent = " + << "const ::Ice::Context& __ctx" + << "const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& __completed" + << "const ::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>& __sent = " "::IceInternal::Function<void (const ::Ice::AsyncResultPtr&)>()" << epar; H << sb; - H << nl << "return begin_" << name << spar << argsAMI << "&ctx, ::Ice::newCallback(completed, sent)" << epar << ";"; + H << nl << "return begin_" << name << spar << argsAMI << "&__ctx, ::Ice::newCallback(__completed, __sent)" << epar << ";"; H << eb; if(p->returnsData()) @@ -1929,7 +1929,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) H << sp << nl << "::Ice::AsyncResultPtr __begin_" << name << spar << paramsDeclAMI - << "const ::Ice::Context* ctx" << "const ::IceInternal::Function<void " << spar; + << "const ::Ice::Context* __ctx" << "const ::IceInternal::Function<void " << spar; if(!retInS.empty()) @@ -1938,9 +1938,9 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) } H << outDecls; - H << epar << ">& response, " - << "const ::IceInternal::Function<void (const ::Ice::Exception&)>& exception, " - << "const ::IceInternal::Function<void (bool)>& sent" << epar; + H << epar << ">& __response, " + << "const ::IceInternal::Function<void (const ::Ice::Exception&)>& __exception, " + << "const ::IceInternal::Function<void (bool)>& __sent" << epar; H << sb; H << nl << "class Cpp11CB : public ::IceInternal::Cpp11FnCallbackNC"; H << sb; @@ -2027,7 +2027,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) H << eb << ';'; - H << nl << "return begin_" << name << spar << argsAMI << "ctx" << "new Cpp11CB(response, exception, sent)" + H << nl << "return begin_" << name << spar << argsAMI << "__ctx" << "new Cpp11CB(__response, __exception, __sent)" << epar << ';'; H << eb; H << nl; |