Skip to content

Commit

Permalink
Remove ACE_UNUSED_ARG
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Jun 11, 2024
1 parent 1d95cca commit fe02c11
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions TAO/TAO_IDL/be/be_visitor_structure/cdr_op_cs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@ be_visitor_structure_cdr_op_cs::visit_structure (be_structure *node)
// Set the sub state as generating code for the output operator.
this->ctx_->sub_state (TAO_CodeGen::TAO_CDR_OUTPUT);

const bool empty = node->nfields () == 0;
const char *const strm = empty ? "" : "strm";
const char *const tao_aggregate = empty ? "" : "_tao_aggregate";
*os << "::CORBA::Boolean operator<< (" << be_idt << be_idt_nl
<< "TAO_OutputCDR &strm," << be_nl
<< "const " << node->name () << " &_tao_aggregate)" << be_uidt
<< "TAO_OutputCDR &" << strm << "," << be_nl
<< "const " << node->name () << " &" << tao_aggregate << ")" << be_uidt
<< be_uidt_nl
<< "{" << be_idt_nl
<< "ACE_UNUSED_ARG(strm);" << be_nl
<< "ACE_UNUSED_ARG(_tao_aggregate);" << be_nl;
<< "{" << be_idt_nl;

be_visitor_context new_ctx (*this->ctx_);
be_visitor_cdr_op_field_decl field_decl (&new_ctx);
Expand Down Expand Up @@ -94,21 +95,19 @@ be_visitor_structure_cdr_op_cs::visit_structure (be_structure *node)

if (! node->is_local ())
{
*os << "strm";
*os << strm;
}

*os << "," << be_nl
<< node->name () << " &";

if (! node->is_local ())
{
*os << "_tao_aggregate";
*os << tao_aggregate;
}

*os << ")" << be_uidt << be_uidt_nl
<< "{" << be_idt_nl
<< "ACE_UNUSED_ARG(strm);" << be_nl
<< "ACE_UNUSED_ARG(_tao_aggregate);" << be_nl;
<< "{" << be_idt_nl;

if (node->is_local ())
{
Expand Down

0 comments on commit fe02c11

Please sign in to comment.