summaryrefslogtreecommitdiff
path: root/TAO_IDL/be/be_visitor_operation/operation_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO_IDL/be/be_visitor_operation/operation_cs.cpp')
-rw-r--r--TAO_IDL/be/be_visitor_operation/operation_cs.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/TAO_IDL/be/be_visitor_operation/operation_cs.cpp b/TAO_IDL/be/be_visitor_operation/operation_cs.cpp
index 80f9ae985af..d6986c83e12 100644
--- a/TAO_IDL/be/be_visitor_operation/operation_cs.cpp
+++ b/TAO_IDL/be/be_visitor_operation/operation_cs.cpp
@@ -47,13 +47,13 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
this->ctx_->attribute ()
? this->ctx_->attribute ()->defined_in ()
: node->defined_in ();
-
+
be_interface *intf = be_interface::narrow_from_scope (s);
if (intf == 0)
{
be_porttype *pt = be_porttype::narrow_from_scope (s);
-
+
if (pt == 0)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -76,8 +76,8 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
return 0;
}
- *os << be_nl << be_nl << "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
+ *os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
+ << "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
// Retrieve the operation return type.
be_type *bt = be_type::narrow_from_decl (node->return_type ());
@@ -103,7 +103,7 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
"codegen for return type failed\n"),
-1);
}
-
+
// Generate the operation name
*os << be_nl
<< intf->name () << "::" << node->local_name ();
@@ -130,10 +130,10 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
"codegen for stub body failed\n"),
-1);
}
-
+
/// If we are in a reply handler, are not an execp_* operation,
/// and have no native args, then generate the AMI static
- /// reply stub declaration.
+ /// reply stub declaration.
if (intf != 0
&& intf->is_ami_rh ()
&& !node->is_excep_ami ()
@@ -141,9 +141,9 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
{
be_visitor_operation_ami_handler_reply_stub_operation_cs v (
this->ctx_);
-
+
int status = v.visit_operation (node);
-
+
if (status == -1)
{
ACE_ERROR_RETURN ((LM_ERROR,
@@ -153,7 +153,7 @@ be_visitor_operation_cs::visit_operation (be_operation *node)
-1);
}
}
-
+
return 0;
}
@@ -191,6 +191,6 @@ be_visitor_operation_cs::visit_argument (be_argument *node)
}
*os << "0}";
-
+
return 0;
}