diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_union_branch.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_union_branch.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/TAO/TAO_IDL/be/be_union_branch.cpp b/TAO/TAO_IDL/be/be_union_branch.cpp index 17dd1156d16..70d4bb34e7b 100644 --- a/TAO/TAO_IDL/be/be_union_branch.cpp +++ b/TAO/TAO_IDL/be/be_union_branch.cpp @@ -54,7 +54,7 @@ be_union_branch::gen_label_value (TAO_OutStream *os, unsigned long index) // If the enum is not in the global scope we have to prefix it. be_union *u = - be_union::narrow_from_scope (this->defined_in ()); + dynamic_cast<be_union*> (this->defined_in ()); if (u == 0) { @@ -62,7 +62,7 @@ be_union_branch::gen_label_value (TAO_OutStream *os, unsigned long index) } be_type* dt = - be_type::narrow_from_decl (u->disc_type ()); + dynamic_cast<be_type*> (u->disc_type ()); if (dt == 0) { @@ -83,7 +83,7 @@ be_union_branch::gen_label_value (TAO_OutStream *os, unsigned long index) // Find where was the enum defined, if it was defined in the globa // scope, then it is easy to generate the enum values.... be_scope* scope = - be_scope::narrow_from_scope (dt->defined_in ()); + dynamic_cast<be_scope*> (dt->defined_in ()); if (scope == 0) { @@ -141,7 +141,7 @@ be_union_branch::gen_default_label_value (TAO_OutStream *os, // discriminant, so we must generate the string name. { AST_ConcreteType *act = bu->disc_type (); - be_enum *be = be_enum::narrow_from_decl (act); + be_enum *be = dynamic_cast<be_enum*> (act); UTL_ScopedName *sn = be->value_to_name (dv.u.enum_val); if (sn) @@ -188,7 +188,3 @@ be_union_branch::destroy (void) this->be_decl::destroy (); this->AST_UnionBranch::destroy (); } - - - -IMPL_NARROW_FROM_DECL (be_union_branch) |