diff options
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cppe/Gen.cpp | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp index eb376597047..da37ebd44fb 100644 --- a/cpp/src/slice2cppe/Gen.cpp +++ b/cpp/src/slice2cppe/Gen.cpp @@ -1435,12 +1435,31 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) { H << "return "; } - H << fixKwd(name) << spar << args << "__defaultContext()" << epar << ';'; + H << fixKwd(name) << spar << args << "0" << epar << ';'; H << eb; - H << nl << _dllExport << retS << ' ' << fixKwd(name) << spar << params << "const ::Ice::Context&" << epar + H << nl << deprecateSymbol << retS << ' ' << fixKwd(name) << spar << paramsDecl << "const ::Ice::Context& __ctx" + << epar; + H << sb; + H << nl; + if(ret) + { + H << "return "; + } + H << fixKwd(name) << spar << args << "&__ctx" << epar << ';'; + H << eb; + + H << nl; + H.dec(); + H << nl << "private:"; + H.inc(); + H << sp << nl << _dllExport << retS << ' ' << fixKwd(name) << spar << params << "const ::Ice::Context*" << epar << ';'; + H << nl; + H.dec(); + H << nl << "public:"; + H.inc(); - C << sp << nl << retS << nl << "IceProxy" << scoped << spar << paramsDecl << "const ::Ice::Context& __ctx" << epar; + C << sp << nl << retS << nl << "IceProxy" << scoped << spar << paramsDecl << "const ::Ice::Context* __ctx" << epar; C << sb; C << nl << "int __cnt = 0;"; C << nl << "while(true)"; |