summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
index 879f325fb37..4f3c0688e53 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_ch.cpp
@@ -24,7 +24,7 @@ be_visitor_valuetype_obv_ch::be_visitor_valuetype_obv_ch (
{
}
-be_visitor_valuetype_obv_ch::~be_visitor_valuetype_obv_ch (void)
+be_visitor_valuetype_obv_ch::~be_visitor_valuetype_obv_ch ()
{
}
@@ -92,7 +92,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
//
int i = 0;
- AST_Type *inherited = 0;
+ AST_Type *inherited = nullptr;
for (; i < node->n_inherits (); ++i)
{
@@ -145,8 +145,8 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
*os << be_nl_2 << "// TAO_IDL - Generated from" << be_nl
<< "// " << __FILE__ << ":" << __LINE__ ;
- *os << be_nl_2 << "virtual void _add_ref (void);" << be_nl;
- *os << "virtual void _remove_ref (void);";
+ *os << be_nl_2 << "virtual void _add_ref ();" << be_nl;
+ *os << "virtual void _remove_ref ();";
}
if (node->have_operation ())
@@ -166,7 +166,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
*os << "OBV_";
}
- *os << node->local_name () << " (void);";
+ *os << node->local_name () << " ();";
// Initializing constructor.
if (node->has_member ())
@@ -193,7 +193,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
{
*os << "OBV_";
}
- *os << node->local_name () << " (void);";
+ *os << node->local_name () << " ();";
// Virtual _copy_value() only provided in OBV_* class when
// ::CORBA::DefaultValueRefCountBase has been included.
@@ -205,7 +205,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
if (this->obv_need_ref_counter (node))
{
*os << be_uidt_nl << be_nl << "public:" << be_idt_nl
- << "virtual ::CORBA::ValueBase *_copy_value (void);";
+ << "virtual ::CORBA::ValueBase *_copy_value ();";
}
// Map fields to private data.
@@ -228,7 +228,7 @@ be_visitor_valuetype_obv_ch::visit_valuetype (be_valuetype *node)
<< "_tao_unmarshal_state (TAO_InputCDR &, TAO_ChunkInfo &);"
<< be_nl
<< "virtual void "
- << "truncation_hook (void);"
+ << "truncation_hook ();"
<< be_uidt_nl << be_nl;
*os << "private:" << be_idt;
@@ -281,7 +281,7 @@ be_visitor_valuetype_obv_ch::visit_field (be_field *node)
}
void
-be_visitor_valuetype_obv_ch::begin_public (void)
+be_visitor_valuetype_obv_ch::begin_public ()
{
AST_Decl::NodeType nt = this->ctx_->node ()->node_type ();
@@ -297,7 +297,7 @@ be_visitor_valuetype_obv_ch::begin_public (void)
}
void
-be_visitor_valuetype_obv_ch::begin_private (void)
+be_visitor_valuetype_obv_ch::begin_private ()
{
TAO_OutStream *os = this->ctx_->stream ();
*os << be_uidt_nl << be_nl