summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
index 14f9a18fead..4ddab60b5af 100644
--- a/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_valuetype/valuetype_obv_cs.cpp
@@ -24,7 +24,7 @@ be_visitor_valuetype_obv_cs::be_visitor_valuetype_obv_cs (
{
}
-be_visitor_valuetype_obv_cs::~be_visitor_valuetype_obv_cs (void)
+be_visitor_valuetype_obv_cs::~be_visitor_valuetype_obv_cs ()
{
}
@@ -51,7 +51,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node)
*os << "OBV_";
}
- *os << node->local_name () << " (void)" << be_nl;
+ *os << node->local_name () << " ()" << be_nl;
*os << ": require_truncation_ (false)" << be_nl
<< "{}" << be_nl_2;
@@ -86,7 +86,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node)
{
*os << "OBV_";
}
- *os << node->local_name () << " (void)" << be_nl
+ *os << node->local_name () << " ()" << be_nl
<< "{}";
// Virtual _copy_value() only provided in OBV_* class when
@@ -100,7 +100,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node)
{
*os << be_nl_2
<< "::CORBA::ValueBase *" << be_nl
- << node->full_obv_skel_name () << "::_copy_value (void)" << be_nl
+ << node->full_obv_skel_name () << "::_copy_value ()" << be_nl
<< "{" << be_idt_nl
<< "::CORBA::ValueBase *ret_val = 0;" << be_nl
<< "ACE_NEW_THROW_EX (" << be_idt_nl
@@ -160,7 +160,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node)
{
*os << be_nl_2 << "void" << be_nl
<< node->full_obv_skel_name ()
- << "::_add_ref (void)" << be_nl
+ << "::_add_ref ()" << be_nl
<< "{" << be_idt_nl
<< "this->::CORBA::DefaultValueRefCountBase::_add_ref ();"
<< be_uidt_nl
@@ -168,7 +168,7 @@ be_visitor_valuetype_obv_cs::visit_valuetype (be_valuetype *node)
*os << be_nl << "void" << be_nl
<< node->full_obv_skel_name ()
- << "::_remove_ref (void)" << be_nl
+ << "::_remove_ref ()" << be_nl
<< "{" << be_idt_nl
<< "this->::CORBA::DefaultValueRefCountBase::_remove_ref ();"
<< be_uidt_nl
@@ -190,7 +190,7 @@ be_visitor_valuetype_obv_cs::visit_field (be_field *node)
{
be_visitor_context ctx = (*this->ctx_);
be_visitor_valuetype_field_cs visitor (&ctx);
- visitor.in_obv_space_ = 1;
+ visitor.in_obv_space_ = true;
if (visitor.visit_field (node) == -1)
{
@@ -214,7 +214,7 @@ be_visitor_valuetype_obv_cs::gen_obv_init_base_constructor_args (
AST_Type *parent = node->inherits_concrete ();
// Generate for inherited members first.
- if (parent != 0)
+ if (parent != nullptr)
{
be_valuetype *be_parent =
dynamic_cast<be_valuetype*> (parent);
@@ -231,7 +231,7 @@ be_visitor_valuetype_obv_cs::gen_obv_init_base_constructor_args (
be_attribute *attr =
dynamic_cast<be_attribute*> (si.item ());
- if (f == 0 || attr != 0)
+ if (f == nullptr || attr != nullptr)
{
continue;
}
@@ -250,7 +250,7 @@ be_visitor_valuetype_obv_cs::gen_obv_init_constructor_inits (
AST_Type *parent = node->inherits_concrete ();
// Generate for inherited members first.
- if (parent != 0)
+ if (parent != nullptr)
{
be_valuetype *be_parent = dynamic_cast<be_valuetype*> (parent);
this->gen_obv_init_constructor_inits (be_parent);
@@ -266,7 +266,7 @@ be_visitor_valuetype_obv_cs::gen_obv_init_constructor_inits (
be_attribute *attr =
dynamic_cast<be_attribute*> (si.item ());
- if (f == 0 || attr != 0)
+ if (f == nullptr || attr != nullptr)
{
continue;
}
@@ -287,7 +287,7 @@ be_visitor_valuetype_obv_cs::gen_obv_call_base_constructor_args (
// Generate for inherited members first.
AST_Type *parent = node->inherits_concrete ();
- if (parent != 0)
+ if (parent != nullptr)
{
be_valuetype *be_parent =
dynamic_cast<be_valuetype*> (parent);