summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-05-10 20:52:46 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-05-10 20:52:46 +0000
commit8106ea1d9086cb17eabe748f3ff9e2cf54dfe3b3 (patch)
treebe85e81fc3d095096de97257ce22aab45e3d4a58 /TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
parent73344b57d62f785899c966d7cf81c70029918ebe (diff)
downloadATCD-8106ea1d9086cb17eabe748f3ff9e2cf54dfe3b3.tar.gz
ChangeLogTag:Wed May 10 15:44:23 2000 Nanbor Wang <nanbor@cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
index bc66c21e7cf..58f8e68eba5 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp
@@ -71,7 +71,6 @@ be_visitor_operation_arglist::visit_operation (be_operation *node)
switch (this->ctx_->state ())
{
case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH:
- case TAO_CodeGen::TAO_LOCAL_OPERATION_ARGLIST_H:
case TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH:
case TAO_CodeGen::TAO_OPERATION_ARGLIST_SH:
// last argument - is always CORBA::Environment
@@ -104,14 +103,13 @@ be_visitor_operation_arglist::visit_operation (be_operation *node)
switch (this->ctx_->state ())
{
- case TAO_CodeGen::TAO_LOCAL_OPERATION_ARGLIST_H:
- *os << " = 0;\n\n";
- break;
- // Fall thru.
case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH:
case TAO_CodeGen::TAO_OPERATION_ARGLIST_COLLOCATED_SH:
case TAO_CodeGen::TAO_OPERATION_ARGLIST_IH:
- *os << ";\n\n";
+ if (node->is_local ())
+ *os << " = 0;\n\n";
+ else
+ *os << ";\n\n";
break;
case TAO_CodeGen::TAO_OPERATION_ARGLIST_SH:
// each method is pure virtual in the server header
@@ -167,7 +165,6 @@ be_visitor_operation_arglist::visit_argument (be_argument *node)
switch (this->ctx_->state ())
{
case TAO_CodeGen::TAO_OPERATION_ARGLIST_CH:
- case TAO_CodeGen::TAO_LOCAL_OPERATION_ARGLIST_H:
ctx.state (TAO_CodeGen::TAO_ARGUMENT_ARGLIST_CH);
break;
case TAO_CodeGen::TAO_OPERATION_ARGLIST_OTHERS: