summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be')
-rw-r--r--TAO/TAO_IDL/be/be_component.cpp10
-rw-r--r--TAO/TAO_IDL/be/be_interface.cpp24
-rw-r--r--TAO/TAO_IDL/be/be_visitor_attr_return.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp6
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp14
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp11
-rw-r--r--TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp21
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp4
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp2
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp2
21 files changed, 46 insertions, 78 deletions
diff --git a/TAO/TAO_IDL/be/be_component.cpp b/TAO/TAO_IDL/be/be_component.cpp
index 28b866663db..5262752f986 100644
--- a/TAO/TAO_IDL/be/be_component.cpp
+++ b/TAO/TAO_IDL/be/be_component.cpp
@@ -364,18 +364,12 @@ be_component::gen_is_a_ancestors (TAO_OutStream *os)
while (ancestor != nullptr)
{
- *os << "std::strcmp (" << be_idt << be_idt_nl
- << "value," << be_nl
- << "\"" << ancestor->repoID () << "\"" << be_uidt_nl
- << ") == 0 ||" << be_uidt_nl;
+ *os << "std::strcmp (value, \"" << ancestor->repoID () << "\") == 0 ||" << be_nl;
ancestor = ancestor->base_component ();
}
- *os << "std::strcmp (" << be_idt << be_idt_nl
- << "value," << be_nl
- << "\"IDL:omg.org/Components/CCMObject:1.0\"" << be_uidt_nl
- << ") == 0" << be_uidt << be_uidt_nl;
+ *os << "std::strcmp (value, \"IDL:omg.org/Components/CCMObject:1.0\") == 0" << be_nl;
return 0;
}
diff --git a/TAO/TAO_IDL/be/be_interface.cpp b/TAO/TAO_IDL/be/be_interface.cpp
index 7cb827f423c..ba3b0ce5ff0 100644
--- a/TAO/TAO_IDL/be/be_interface.cpp
+++ b/TAO/TAO_IDL/be/be_interface.cpp
@@ -2309,10 +2309,7 @@ be_interface::is_a_helper (be_interface * /*derived*/,
TAO_OutStream *os)
{
// Emit the comparison code.
- *os << "std::strcmp (" << be_idt << be_idt_nl
- << "value," << be_nl
- << "\"" << bi->repoID () << "\"" << be_uidt_nl
- << ") == 0 ||" << be_uidt_nl;
+ *os << "std::strcmp (value, \"" << bi->repoID () << "\") == 0 ||" << be_nl;
return 0;
}
@@ -2756,34 +2753,25 @@ be_interface::gen_is_a_ancestors (TAO_OutStream *os)
if (this->is_abstract () || this->has_mixed_parentage ())
{
- *os << "std::strcmp (" << be_idt << be_idt_nl
- << "value," << be_nl
- << "\"IDL:omg.org/CORBA/AbstractBase:1.0\"" << be_uidt_nl
- << ") == 0";
+ *os << "std::strcmp (value, \"IDL:omg.org/CORBA/AbstractBase:1.0\") == 0";
}
else if (this->is_local ())
{
- *os << "std::strcmp (" << be_idt << be_idt_nl
- << "value," << be_nl
- << "\"IDL:omg.org/CORBA/LocalObject:1.0\"" << be_uidt_nl
- << ") == 0";
+ *os << "std::strcmp (value, \"IDL:omg.org/CORBA/LocalObject:1.0\") == 0";
}
if (this->has_mixed_parentage () || this->is_local ())
{
- *os << " ||" << be_uidt_nl;
+ *os << " ||" << be_nl;
}
else if (this->is_abstract ())
{
- *os << be_uidt << be_uidt_nl;
+ *os << be_nl;
}
if (! this->is_abstract ())
{
- *os << "std::strcmp (" << be_idt << be_idt_nl
- << "value," << be_nl
- << "\"IDL:omg.org/CORBA/Object:1.0\"" << be_uidt_nl
- << ") == 0" << be_uidt << be_uidt_nl;
+ *os << "std::strcmp (value, \"IDL:omg.org/CORBA/Object:1.0\") == 0" << be_nl;
}
return 0;
diff --git a/TAO/TAO_IDL/be/be_visitor_attr_return.cpp b/TAO/TAO_IDL/be/be_visitor_attr_return.cpp
index 37873af1783..731e32bb18d 100644
--- a/TAO/TAO_IDL/be/be_visitor_attr_return.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_attr_return.cpp
@@ -114,7 +114,7 @@ be_visitor_attr_return::visit_predefined_type (
<< this->attr_name_string_.c_str () << ".in ());";
break;
case AST_PredefinedType::PT_any:
- os_ << "::CORBA::Any * retval = 0;" << be_nl
+ os_ << "::CORBA::Any * retval {};" << be_nl
<< "ACE_NEW_RETURN (" << be_idt_nl
<< "retval," << be_nl
<< "::CORBA::Any ("
diff --git a/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp b/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp
index b27b9fc6642..854c2c0f2c3 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/component_ami_rh_exs.cpp
@@ -112,7 +112,7 @@ be_visitor_component_ami_rh_exs::visit_operation (
if (count == 0 && vrt)
{
- os_ << "void)";
+ os_ << ")";
}
else
{
diff --git a/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp b/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp
index 347b10ee719..3b1355474cb 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/context_svts.cpp
@@ -192,7 +192,7 @@ be_visitor_context_svts::visit_publishes (be_publishes *node)
os_ << be_nl
<< be_nl
- << "::Components::Cookie * retv = 0;" << be_nl
+ << "::Components::Cookie * retv {};" << be_nl
<< "ACE_NEW_THROW_EX (retv," << be_nl
<< " ::CIAO::Cookie_Impl (ptr),"
<< be_nl
@@ -397,7 +397,7 @@ be_visitor_context_svts::gen_uses_multiplex (
<< " 0);" << be_nl_2;
os_ << "::" << node_->full_name () << "::" << port_name
- << "Connections * tmp_retv = 0;" << be_nl
+ << "Connections * tmp_retv {};" << be_nl
<< "ACE_NEW_THROW_EX (tmp_retv," << be_nl
<< " ::" << node_->full_name ()
<< "::" << port_name << "Connections (" << be_nl
@@ -465,7 +465,7 @@ be_visitor_context_svts::gen_uses_multiplex (
<< "}";
os_ << be_nl_2
- << "::Components::Cookie * ck = 0;" << be_nl
+ << "::Components::Cookie * ck {};" << be_nl
<< "ACE_NEW_THROW_EX (ck," << be_nl
<< " ::CIAO::Cookie_Impl (ptr),"
<< be_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp b/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp
index c1a7263238c..d2d93264f93 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/executor_exs.cpp
@@ -208,7 +208,7 @@ be_visitor_executor_exs::visit_component (be_component *node)
<< "ACE_Reactor*" << be_nl
<< lname << "_exec_i::reactor ()" << be_nl
<< "{" << be_idt_nl
- << "ACE_Reactor* reactor = 0;" << be_nl
+ << "ACE_Reactor* reactor {};" << be_nl
<< "::CORBA::Object_var ccm_object = " << be_idt_nl
<< "this->ciao_context_->get_CCM_object();" << be_uidt_nl
<< "if (! ::CORBA::is_nil (ccm_object.in ())) " << be_idt_nl
@@ -357,7 +357,7 @@ be_visitor_executor_exs::visit_provides (be_provides *node)
<< "if ( ::CORBA::is_nil (this->ciao_" << port_name
<< "_.in ()))" << be_idt_nl
<< "{" << be_idt_nl
- << lname << "_exec_i *tmp = 0;" << be_nl
+ << lname << "_exec_i *tmp {};" << be_nl
<< "ACE_NEW_RETURN (" << be_idt_nl
<< "tmp," << be_nl
<< lname << "_exec_i (" << be_idt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp b/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp
index 391d75a5be1..3f081adcfb4 100644
--- a/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_component/servant_svs.cpp
@@ -775,7 +775,7 @@ be_visitor_servant_svs::gen_publishes_top ()
<< node_->local_name ()
<< "_Servant::get_all_publishers ()" << be_nl
<< "{" << be_idt_nl
- << "::Components::PublisherDescriptions *retval = 0;"
+ << "::Components::PublisherDescriptions *retval {};"
<< be_nl
<< "ACE_NEW_THROW_EX (retval," << be_nl
<< " ::Components::PublisherDescriptions,"
@@ -882,7 +882,7 @@ be_visitor_servant_svs::gen_uses_top ()
<< node_->local_name ()
<< "_Servant::get_all_receptacles ()" << be_nl
<< "{" << be_idt_nl
- << "::Components::ReceptacleDescriptions * retval = 0;"
+ << "::Components::ReceptacleDescriptions * retval {};"
<< be_nl
<< "ACE_NEW_THROW_EX (retval," << be_nl
<< " ::Components::ReceptacleDescriptions,"
@@ -1003,7 +1003,7 @@ be_visitor_servant_svs::gen_get_all_emitters ()
<< node_->local_name ()
<< "_Servant::get_all_emitters ()" << be_nl
<< "{" << be_idt_nl
- << "::Components::EmitterDescriptions *retval = 0;"
+ << "::Components::EmitterDescriptions *retval {};"
<< be_nl
<< "ACE_NEW_THROW_EX (retval," << be_nl
<< " ::Components::EmitterDescriptions,"
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp
index 94508097dd4..ad0751a4dad 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ch.cpp
@@ -61,7 +61,7 @@ int be_visitor_exception_ch::visit_exception (be_exception *node)
<< node->local_name () << " ();" << be_nl
<< node->local_name () << " (const " << node->local_name ()
<< " &);" << be_nl
- << "~" << node->local_name () << " (void);\n" << be_nl;
+ << "~" << node->local_name () << " () = default;\n" << be_nl;
// Assignment operator.
*os << node->local_name () << " &operator= (const "
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
index fda3de5ef27..a25dc7fb3da 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
@@ -107,12 +107,6 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
*os << "{" << be_nl;
*os << "}" << be_nl_2;
- // Destructor.
- *os << node->name () << "::~" << node->local_name ()
- << " ()" << be_nl;
- *os << "{" << be_nl;
- *os << "}" << be_nl_2;
-
// Copy constructor.
*os << node->name () << "::" << node->local_name () << " (const ::"
<< node->name () << " &_tao_excp)" << be_idt_nl;
@@ -203,18 +197,18 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
*os << "::CORBA::Exception *" << node->name ()
<< "::_alloc ()" << be_nl;
*os << "{" << be_idt_nl;
- *os << "::CORBA::Exception *retval = 0;" << be_nl
+ *os << "::CORBA::Exception *retval {};" << be_nl
<< "ACE_NEW_RETURN (retval, ::" << node->name ()
- << ", 0);" << be_nl
+ << ", nullptr);" << be_nl
<< "return retval;" << be_uidt_nl;
*os << "}" << be_nl_2;
*os << "::CORBA::Exception *" << be_nl
<< node->name () << "::_tao_duplicate () const" << be_nl
<< "{" << be_idt_nl
- << "::CORBA::Exception *result = 0;" << be_nl
+ << "::CORBA::Exception *result {};" << be_nl
<< "ACE_NEW_RETURN (result, "
- << "::" << node->name () << " (*this), 0);"
+ << "::" << node->name () << " (*this), nullptr);"
<< be_nl
<< "return result;" << be_uidt_nl
<< "}" << be_nl_2;
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp
index f79eafd2f91..e792b18f3c4 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/amh_ss.cpp
@@ -71,7 +71,7 @@ be_visitor_amh_interface_ss::this_method (be_interface *node)
<< "TAO_Stub *stub = this->_create_stub ();" << be_nl_2;
*os << "TAO_Stub_Auto_Ptr safe_stub (stub);" << be_nl
- << "::CORBA::Object_ptr tmp = CORBA::Object_ptr ();" << be_nl
+ << "::CORBA::Object_ptr tmp {};" << be_nl
<< be_nl
<< "::CORBA::Boolean _tao_opt_colloc =" << be_idt_nl
<< "stub->servant_orb_var ()->orb_core ()->"
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
index 8f681fbc85f..072a877ecad 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_cs.cpp
@@ -308,7 +308,7 @@ be_visitor_interface_cs::visit_interface (be_interface *node)
-1);
}
- *os << ")" << be_nl
+ *os << ")" << be_uidt_nl
<< "{" << be_idt_nl
<< "return true; // success using local knowledge" << be_uidt_nl
<< "}" << be_uidt_nl
@@ -471,7 +471,7 @@ be_visitor_interface_cs::gen_xxx_narrow (const char *pre,
}
else
{
- *os << "return" << be_idt_nl;
+ *os << "return ";
if (!node->is_abstract ())
{
@@ -484,18 +484,17 @@ be_visitor_interface_cs::gen_xxx_narrow (const char *pre,
<< node->local_name () << ">::" << pre <<" (";
}
- *os << be_idt << be_idt_nl
- << "_tao_objref";
+ *os << "_tao_objref";
if (ACE_OS::strcmp (pre, "narrow") == 0)
{
- *os << "," << be_nl
+ *os << ", "
<< "\"" << node->repoID () << "\"";
}
*os << ");";
- *os << be_uidt << be_uidt << be_uidt << be_uidt_nl
+ *os << be_uidt_nl
<< "}" << be_nl_2;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
index 1d778cd0081..81256400f5f 100644
--- a/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_interface/interface_ss.cpp
@@ -114,8 +114,8 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
// Default constructor body.
*os << "{" << be_idt_nl
- << "this->optable_ = &tao_" << flat_name
- << "_optable;" << be_uidt_nl
+ << "this->optable_ = std::addressof(tao_" << flat_name
+ << "_optable);" << be_uidt_nl
<< "}" << be_nl_2;
// find if we are at the top scope or inside some module
@@ -182,22 +182,15 @@ be_visitor_interface_ss::visit_interface (be_interface *node)
-1);
}
- *os << "!std::strcmp (" << be_idt << be_idt_nl
- << "value," << be_nl
- << "\"IDL:omg.org/CORBA/Object:1.0\"" << be_uidt_nl
- << ")";
+ *os << "std::strcmp (value, \"IDL:omg.org/CORBA/Object:1.0\") == 0";
if (node->has_mixed_parentage ())
{
- *os << " ||" << be_uidt_nl
- << "!std::strcmp (" << be_idt << be_idt_nl
- << "value," << be_nl
- << "\"IDL:omg.org/CORBA/AbstractBase:1.0\""
- << be_uidt_nl
- << ")";
+ *os << " ||" << be_nl
+ << "std::strcmp (value, \"IDL:omg.org/CORBA/AbstractBase:1.0\") == 0";
}
- *os << be_uidt << be_uidt_nl
+ *os << be_uidt_nl
<< ");" << be_uidt << be_uidt_nl
<< "}" << be_nl_2;
@@ -382,7 +375,7 @@ be_visitor_interface_ss::this_method (be_interface *node)
/* Coverity whines about an unused return value from _nil() when
initializing tmp. Just use zero instead. */
- *os << "::CORBA::Object_ptr tmp = CORBA::Object_ptr ();"
+ *os << "::CORBA::Object_ptr tmp {};"
<< be_nl_2;
*os << "::CORBA::Boolean const _tao_opt_colloc ="
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
index de538be52bf..b073286e4d7 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_cs.cpp
@@ -136,7 +136,7 @@ be_visitor_operation_ami_cs::visit_operation (be_operation *node)
// type is void. No need to generate argument list.
*os << be_nl_2
- << "TAO::Argument ** _the_tao_operation_signature = 0;";
+ << "TAO::Argument ** _the_tao_operation_signature {};";
nargs = 0; // Don't count the reply handler.
}
else
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp b/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp
index ede3ab5369e..8be04af15e1 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/ami_handler_reply_stub_operation_cs.cpp
@@ -205,7 +205,7 @@ be_visitor_operation_ami_handler_reply_stub_operation_cs::visit_operation (
<< "0);" << be_uidt
<< be_uidt_nl;
- *os << "::Messaging::ExceptionHolder* exception_holder_ptr = 0;" << be_nl
+ *os << "::Messaging::ExceptionHolder* exception_holder_ptr {};" << be_nl
<< "ACE_NEW (" << be_idt << be_idt_nl
<< "exception_holder_ptr," << be_nl
<< "::TAO::ExceptionHolder (" << be_idt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp
index 7b8b075314c..fa546645e9b 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ch.cpp
@@ -520,5 +520,5 @@ be_visitor_valuebox_field_ch::emit_member_get (be_decl *field,
TAO_OutStream *os = this->ctx_->stream ();
*os << const_prefix << field_type->name () << type_suffix << " "
- << field->local_name () << " (void) " << const_method << ";" << be_nl;
+ << field->local_name () << " () " << const_method << ";" << be_nl;
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp
index 481adfd98b2..31bbb25ea69 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/field_ci.cpp
@@ -589,7 +589,7 @@ be_visitor_valuebox_field_ci::emit_member_get (be_decl *field,
*os << "ACE_INLINE " << const_prefix << field_type->name () << type_suffix
<< be_nl
<< vb_node_->name () << "::" << field->local_name ()
- << " (void) " << const_method << be_nl
+ << " () " << const_method << be_nl
<< "{" << be_idt_nl
<< "return this->_pd_value->" << field->local_name () << access_modifier
<< ";" << be_uidt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp b/TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp
index 7d3ad3438e5..562a4fa0dea 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuebox/union_member_ci.cpp
@@ -544,7 +544,7 @@ be_visitor_valuebox_union_member_ci::emit_member_get (
*os << "ACE_INLINE " << const_prefix << field_type->name () << type_suffix
<< be_nl
<< vb_node_->name () << "::" << field->local_name ()
- << " (void) " << const_method << be_nl
+ << " () " << const_method << be_nl
<< "{" << be_idt_nl
<< "return this->_pd_value->" << field->local_name ()
<< " ();" << be_uidt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp
index 16722cf0364..3047404a425 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/arglist.cpp
@@ -79,7 +79,7 @@ be_visitor_obv_operation_arglist::visit_operation (be_operation *node)
}
else
{
- *os << "void)";
+ *os << ")";
}
be_visitor_context ctx = *this->ctx_;
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
index cd93330c0d1..08e9c233fbc 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_ch.cpp
@@ -243,8 +243,8 @@ be_visitor_valuetype_ch::visit_valuetype (be_valuetype *node)
if (node->n_supports () > 0)
{
*os << be_uidt_nl << be_nl << "public:" << be_idt_nl;
- *os << be_nl << "virtual void _add_ref (void) = 0;" << be_nl;
- *os << "virtual void _remove_ref (void) = 0;" << be_nl;
+ *os << be_nl << "virtual void _add_ref () = 0;" << be_nl;
+ *os << "virtual void _remove_ref () = 0;" << be_nl;
*os << "virtual ::CORBA::ValueBase *_tao_to_value ();";
}
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp
index cc4c7a339bf..f09a8cd5313 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_cs.cpp
@@ -323,7 +323,7 @@ be_visitor_valuetype_cs::visit_valuetype (be_valuetype *node)
<< node->local_name () << " *&new_object" << be_uidt_nl
<< ")" << be_uidt_nl
<< "{" << be_idt_nl
- << "::CORBA::ValueBase *base = 0;" << be_nl
+ << "::CORBA::ValueBase *base {};" << be_nl
<< "::CORBA::Boolean is_indirected = false;" << be_nl
<< "::CORBA::Boolean is_null_object = false;" << be_nl
<< "::CORBA::Boolean const retval =" << be_idt_nl
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp
index 478f369c7cc..86bdaea0b8e 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_init_arglist_ch.cpp
@@ -49,7 +49,7 @@ be_visitor_valuetype_init_arglist_ch::visit_factory (be_factory *node)
}
else
{
- os << "void)";
+ os << ")";
}
return 0;