summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
index 2bb5674fb48..96a21c4430a 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/cdr_op_cs.cpp
@@ -74,7 +74,7 @@ be_visitor_valuetype_cdr_op_cs::visit_valuetype (be_valuetype *node)
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state(TAO_CodeGen::TAO_CDR_OUTPUT);
-
+
*os << "CORBA::Boolean" << be_nl
<< "operator<< (" << be_idt << be_idt_nl
<< "TAO_OutputCDR &strm," << be_nl
@@ -85,8 +85,7 @@ be_visitor_valuetype_cdr_op_cs::visit_valuetype (be_valuetype *node)
*os << "return" << be_idt_nl
<< "CORBA::ValueBase::_tao_marshal (" << be_idt << be_idt_nl
<< "strm," << be_nl
- << "const_cast<" << node->full_name ()
- << " *> (_tao_valuetype)," << be_nl
+ << "_tao_valuetype," << be_nl
<< "reinterpret_cast<ptrdiff_t> (&"
<< node->full_name () << "::_downcast)"
<< be_uidt_nl