summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cppe
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2007-04-26 19:06:58 +0000
committerDwayne Boone <dwayne@zeroc.com>2007-04-26 19:06:58 +0000
commitea36df3a62ab49eae6a665f263e615edf3e4ae09 (patch)
tree902497fb39e492651341389f07e4566e34ee8bc2 /cpp/src/slice2cppe
parentRemoved default context support (diff)
downloadice-ea36df3a62ab49eae6a665f263e615edf3e4ae09.tar.bz2
ice-ea36df3a62ab49eae6a665f263e615edf3e4ae09.tar.xz
ice-ea36df3a62ab49eae6a665f263e615edf3e4ae09.zip
Bug 2149
Diffstat (limited to 'cpp/src/slice2cppe')
-rw-r--r--cpp/src/slice2cppe/Gen.cpp25
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)";