summaryrefslogtreecommitdiff
path: root/TAO_IDL/be/be_visitor_operation/operation_ih.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO_IDL/be/be_visitor_operation/operation_ih.cpp')
-rw-r--r--TAO_IDL/be/be_visitor_operation/operation_ih.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/TAO_IDL/be/be_visitor_operation/operation_ih.cpp b/TAO_IDL/be/be_visitor_operation/operation_ih.cpp
index ba35fad7023..8d382cb21d3 100644
--- a/TAO_IDL/be/be_visitor_operation/operation_ih.cpp
+++ b/TAO_IDL/be/be_visitor_operation/operation_ih.cpp
@@ -28,15 +28,21 @@ be_visitor_operation_ih::~be_visitor_operation_ih (void)
int
be_visitor_operation_ih::visit_operation (be_operation *node)
{
+ // Impl classes shouldn't have implied AMI operations.
+ if (node->is_sendc_ami ())
+ {
+ return 0;
+ }
+
TAO_OutStream *os = this->ctx_->stream ();
this->ctx_->node (node);
-
- *os << be_nl << be_nl;
+
+ *os << be_nl_2;
if (be_global->gen_impl_debug_info ())
{
*os << "// TAO_IDL - Generated from" << be_nl
- << "// " << __FILE__ << ":" << __LINE__ << be_nl << be_nl;
+ << "// " << __FILE__ << ":" << __LINE__ << be_nl_2;
}
// every operation is declared virtual in the client code