summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2020-09-18 08:46:41 +0200
committerJohnny Willemsen <jwillemsen@remedy.nl>2020-09-18 08:46:41 +0200
commit6f78b0285ec9a20ccc8c626ff99e5df711a25e18 (patch)
tree007b3cf4129ecb433a642605b88ab8f5ca68a306 /TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
parent0eff81cbdb5089fc417afd9aeddf20a626e7512a (diff)
downloadATCD-6f78b0285ec9a20ccc8c626ff99e5df711a25e18.tar.gz
Remove usage of narrow_from_decl/narrow_from_scope and replace them with dynamic_cast
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
index 888f7230521..8eed1cecc00 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
@@ -33,7 +33,7 @@ be_visitor_union_branch_private_ch::~be_visitor_union_branch_private_ch (void)
int
be_visitor_union_branch_private_ch::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)
{
@@ -541,7 +541,7 @@ be_visitor_union_branch_private_ch::visit_structure_fwd (
be_structure_fwd *node)
{
be_structure *s =
- be_structure::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_structure*> (node->full_definition ());
return this->visit_structure (s);
}
@@ -613,7 +613,7 @@ be_visitor_union_branch_private_ch::visit_union_fwd (
be_union_fwd *node)
{
be_union *u =
- be_union::narrow_from_decl (node->full_definition ());
+ dynamic_cast<be_union*> (node->full_definition ());
return this->visit_union (u);
}