From 23948cd6e11d1c059cbe2b56bbce49713b01e126 Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Mon, 16 Feb 2004 20:28:30 +0000 Subject: more AMI --- cpp/src/slice2cpp/Gen.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 381ec7f2b4e..acb44b529af 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1245,8 +1245,7 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << sb; // Async requests may only be sent twoway. C << nl << "__checkTwowayOnly(\"" << p->name() << "\");"; - C << nl << "__cb->__setup(__reference());"; - C << nl << "__cb->__invoke" << spar << argsAMI << "__ctx" << epar << ';'; + C << nl << "__cb->__invoke" << spar << "__reference()" << argsAMI << "__ctx" << epar << ';'; C << eb; } } @@ -3342,6 +3341,10 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) vector paramsDeclInvoke; vector argsInvoke; + paramsInvoke.push_back("const ::IceInternal::ReferencePtr&"); + paramsDeclInvoke.push_back("const ::IceInternal::ReferencePtr& __ref"); + argsInvoke.push_back("__ref"); + TypePtr ret = p->returnType(); string retS = inputTypeToString(ret); @@ -3412,7 +3415,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) C << nl << "try"; C << sb; C << nl << "static const ::std::string __operation(\"" << p->name() << "\");"; - C << nl << "__prepare(__operation, " << "static_cast< ::Ice::OperationMode>(" << p->mode() << "), __ctx);"; + C << nl << "__prepare(__ref, __operation, static_cast< ::Ice::OperationMode>(" << p->mode() << "), __ctx);"; writeMarshalCode(C, inParams, 0); if(p->sendsClasses()) { -- cgit v1.2.3