summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp70
1 files changed, 35 insertions, 35 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp
index a9e96e188e9..566027008ec 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_ch.cpp
@@ -22,7 +22,7 @@ be_visitor_union_branch_public_ch::be_visitor_union_branch_public_ch (
{
}
-be_visitor_union_branch_public_ch::~be_visitor_union_branch_public_ch (void)
+be_visitor_union_branch_public_ch::~be_visitor_union_branch_public_ch ()
{
}
@@ -62,7 +62,7 @@ be_visitor_union_branch_public_ch::visit_array (be_array *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -118,7 +118,7 @@ be_visitor_union_branch_public_ch::visit_array (be_array *node)
<< "_" << bt->local_name () << ");" << be_nl;
// The get method.
*os << "_" << bt->local_name () << "_slice * " << ub->local_name ()
- << " (void) const; // get method";
+ << " () const; // get method";
}
else
{
@@ -133,7 +133,7 @@ be_visitor_union_branch_public_ch::visit_array (be_array *node)
<< be_nl;
// The get method.
*os << bt->nested_type_name (bu, "_slice *") << " " << ub->local_name ()
- << " (void) const;";
+ << " () const;";
}
return 0;
@@ -144,7 +144,7 @@ be_visitor_union_branch_public_ch::visit_enum (be_enum *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -196,7 +196,7 @@ be_visitor_union_branch_public_ch::visit_enum (be_enum *node)
<< be_nl;
// the get method.
*os << bt->nested_type_name (bu) << " " << ub->local_name ()
- << " (void) const;";
+ << " () const;";
return 0;
}
@@ -206,7 +206,7 @@ be_visitor_union_branch_public_ch::visit_interface (be_interface *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -239,7 +239,7 @@ be_visitor_union_branch_public_ch::visit_interface (be_interface *node)
<< ");" << be_nl;
// Get method.
*os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name ()
- << " (void) const;";
+ << " () const;";
return 0;
}
@@ -249,7 +249,7 @@ be_visitor_union_branch_public_ch::visit_interface_fwd (be_interface_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -282,7 +282,7 @@ be_visitor_union_branch_public_ch::visit_interface_fwd (be_interface_fwd *node)
<< ");" << be_nl;
// Get method.
*os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name ()
- << " (void) const;";
+ << " () const;";
return 0;
}
@@ -292,7 +292,7 @@ be_visitor_union_branch_public_ch::visit_valuebox (be_valuebox *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -325,7 +325,7 @@ be_visitor_union_branch_public_ch::visit_valuebox (be_valuebox *node)
<< ");" << be_nl;
// Get method.
*os << bt->nested_type_name (bu, "*") << " " << ub->local_name ()
- << " (void) const;";
+ << " () const;";
return 0;
}
@@ -335,7 +335,7 @@ be_visitor_union_branch_public_ch::visit_valuetype (be_valuetype *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -368,7 +368,7 @@ be_visitor_union_branch_public_ch::visit_valuetype (be_valuetype *node)
<< ");" << be_nl;
// Get method.
*os << bt->nested_type_name (bu, "*") << " " << ub->local_name ()
- << " (void) const;";
+ << " () const;";
return 0;
}
@@ -378,7 +378,7 @@ be_visitor_union_branch_public_ch::visit_valuetype_fwd (be_valuetype_fwd *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -411,7 +411,7 @@ be_visitor_union_branch_public_ch::visit_valuetype_fwd (be_valuetype_fwd *node)
<< ")" << be_nl;
// Get method.
*os << bt->nested_type_name (bu, "*") << " " << ub->local_name ()
- << " (void) const;";
+ << " () const;";
return 0;
}
@@ -421,11 +421,11 @@ be_visitor_union_branch_public_ch::visit_predefined_type (be_predefined_type *no
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
be_typedef *td = this->ctx_->alias ();
// Check if we are visiting this via a visit to a typedef node.
- if (td != 0)
+ if (td != nullptr)
{
bt = td;
}
@@ -457,23 +457,23 @@ be_visitor_union_branch_public_ch::visit_predefined_type (be_predefined_type *no
<< "void " << ub->local_name () << " (const "
<< bt->nested_type_name (bu, "_ptr") << ");" << be_nl;
*os << bt->nested_type_name (bu, "_ptr") << " "
- << ub->local_name () << " (void) const;";
+ << ub->local_name () << " () const;";
break;
case AST_PredefinedType::PT_value:
*os << be_nl_2
<< "void " << ub->local_name () << " ( "
<< bt->nested_type_name (bu, " *") << ");" << be_nl;
*os << bt->nested_type_name (bu, " *") << " "
- << ub->local_name () << " (void) const;";
+ << ub->local_name () << " () const;";
break;
case AST_PredefinedType::PT_any:
*os << be_nl_2
<< "void " << ub->local_name () << " (const "
<< bt->nested_type_name (bu) << " &);" << be_nl;
*os << "const " << bt->nested_type_name (bu) << " &"
- << ub->local_name () << " (void) const;" << be_nl;
+ << ub->local_name () << " () const;" << be_nl;
*os << bt->nested_type_name (bu) << " &"
- << ub->local_name () << " (void);";
+ << ub->local_name () << " ();";
break;
case AST_PredefinedType::PT_void:
break;
@@ -482,7 +482,7 @@ be_visitor_union_branch_public_ch::visit_predefined_type (be_predefined_type *no
<< "void " << ub->local_name () << " ( "
<< bt->nested_type_name (bu) << ");" << be_nl;
*os << bt->nested_type_name (bu) << " "
- << ub->local_name () << " (void) const;";
+ << ub->local_name () << " () const;";
}
return 0;
@@ -493,7 +493,7 @@ be_visitor_union_branch_public_ch::visit_sequence (be_sequence *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -551,10 +551,10 @@ be_visitor_union_branch_public_ch::visit_sequence (be_sequence *node)
<< "void " << ub->local_name () << " (const "
<< bt->nested_type_name (bu) << " &);" << be_nl;
*os << "const " << bt->nested_type_name (bu) << " &"
- << ub->local_name () << " (void) const;"
+ << ub->local_name () << " () const;"
<< be_nl;
*os << bt->nested_type_name (bu) << " &" << ub->local_name ()
- << " (void);";
+ << " ();";
return 0;
}
@@ -589,7 +589,7 @@ be_visitor_union_branch_public_ch::visit_string (be_string *node)
*os << "void " << ub->local_name () << " (const ::CORBA::String_var&);"
<< be_nl;
*os << "const char *" << ub->local_name ()
- << " (void) const;";
+ << " () const;";
}
else
{
@@ -600,7 +600,7 @@ be_visitor_union_branch_public_ch::visit_string (be_string *node)
*os << "void " << ub->local_name () << " (const ::CORBA::WString_var&);"
<< be_nl;
*os << "const ::CORBA::WChar *" << ub->local_name ()
- << " (void) const;";
+ << " () const;";
}
return 0;
@@ -611,7 +611,7 @@ be_visitor_union_branch_public_ch::visit_structure (be_structure *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -659,10 +659,10 @@ be_visitor_union_branch_public_ch::visit_structure (be_structure *node)
<< "void " << ub->local_name () << " (const "
<< bt->nested_type_name (bu) << " &);" << be_nl
<< "const " << bt->nested_type_name (bu) << " &"
- << ub->local_name () << " (void) const;"
+ << ub->local_name () << " () const;"
<< be_nl
<< bt->nested_type_name (bu) << " &" << ub->local_name ()
- << " (void);";
+ << " ();";
return 0;
}
@@ -694,7 +694,7 @@ be_visitor_union_branch_public_ch::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -703,7 +703,7 @@ be_visitor_union_branch_public_ch::visit_union (be_union *node)
{
be_decl *ub = this->ctx_->node ();
be_decl *bu = this->ctx_->scope ()->decl ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
// Check if we are visiting this via a visit to a typedef node.
if (this->ctx_->alias ())
@@ -752,10 +752,10 @@ be_visitor_union_branch_public_ch::visit_union (be_union *node)
<< "void " << ub->local_name () << " (const "
<< bt->nested_type_name (bu) << " &);" << be_nl
<< "const " << bt->nested_type_name (bu) << " &"
- << ub->local_name () << " (void) const;"
+ << ub->local_name () << " () const;"
<< be_nl
<< bt->nested_type_name (bu) << " &" << ub->local_name ()
- << " (void);";
+ << " ();";
return 0;
}