summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
index f585aeada96..5fb6a632f95 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/cdr_op_cs.cpp
@@ -28,14 +28,14 @@ be_visitor_union_branch_cdr_op_cs::be_visitor_union_branch_cdr_op_cs (
{
}
-be_visitor_union_branch_cdr_op_cs::~be_visitor_union_branch_cdr_op_cs (void)
+be_visitor_union_branch_cdr_op_cs::~be_visitor_union_branch_cdr_op_cs ()
{
}
int
be_visitor_union_branch_cdr_op_cs::visit_union_branch (be_union_branch *node)
{
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -85,9 +85,9 @@ be_visitor_union_branch_cdr_op_cs::visit_array (be_array *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -116,7 +116,7 @@ be_visitor_union_branch_cdr_op_cs::visit_array (be_array *node)
if (node->is_nested ())
{
be_decl *parent =
- be_scope::narrow_from_scope (node->defined_in ())->decl ();
+ dynamic_cast<be_scope*> (node->defined_in ())->decl ();
ACE_OS::sprintf (fname,
"%s::_%s",
parent->full_name (),
@@ -185,9 +185,9 @@ be_visitor_union_branch_cdr_op_cs::visit_enum (be_enum *node)
// Retrieve the union_branch node
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -260,9 +260,9 @@ be_visitor_union_branch_cdr_op_cs::visit_interface (be_interface *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -340,9 +340,9 @@ be_visitor_union_branch_cdr_op_cs::visit_interface_fwd (be_interface_fwd *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -425,9 +425,9 @@ be_visitor_union_branch_cdr_op_cs::emit_valuetype_common (be_type *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -483,9 +483,9 @@ be_visitor_union_branch_cdr_op_cs::visit_predefined_type (
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_cs::"
@@ -671,9 +671,9 @@ be_visitor_union_branch_cdr_op_cs::visit_sequence (be_sequence *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_ci::"
@@ -741,9 +741,9 @@ be_visitor_union_branch_cdr_op_cs::visit_string (be_string *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_ci::"
@@ -864,9 +864,9 @@ be_visitor_union_branch_cdr_op_cs::visit_structure (be_structure *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_ci::"
@@ -928,7 +928,7 @@ be_visitor_union_branch_cdr_op_cs::visit_typedef (be_typedef *node)
-1);
}
- this->ctx_->alias (0);
+ this->ctx_->alias (nullptr);
return 0;
}
@@ -961,9 +961,9 @@ be_visitor_union_branch_cdr_op_cs::visit_union (be_union *node)
// Retrieve the union_branch node.
be_union_branch *f =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
- if (f == 0)
+ if (f == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
"(%N:%l) be_visitor_union_branch_cdr_op_ci::"
@@ -1010,16 +1010,16 @@ be_visitor_union_branch_cdr_op_cs::visit_union (be_union *node)
}
int
-be_visitor_union_branch_cdr_op_cs::explicit_default (void)
+be_visitor_union_branch_cdr_op_cs::explicit_default ()
{
be_union *bu =
- be_union::narrow_from_decl (this->ctx_->scope ()->decl ());
+ dynamic_cast<be_union*> (this->ctx_->scope ()->decl ());
int def_index = bu->default_index ();
if (def_index != -1)
{
be_union_branch *ub =
- be_union_branch::narrow_from_decl (this->ctx_->node ());
+ dynamic_cast<be_union_branch*> (this->ctx_->node ());
int i = 0;
@@ -1028,13 +1028,13 @@ be_visitor_union_branch_cdr_op_cs::explicit_default (void)
!si.is_done ();
si.next ())
{
- be_union_branch *bub = 0; // union branch node
+ be_union_branch *bub = nullptr; // union branch node
AST_Decl *d = si.item ();
if (!d->imported ())
{
- bub = be_union_branch::narrow_from_decl (d);
+ bub = dynamic_cast<be_union_branch*> (d);
}
if (bub == ub)