diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-09-18 08:46:41 +0200 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-09-18 08:46:41 +0200 |
commit | 6f78b0285ec9a20ccc8c626ff99e5df711a25e18 (patch) | |
tree | 007b3cf4129ecb433a642605b88ab8f5ca68a306 /TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp | |
parent | 0eff81cbdb5089fc417afd9aeddf20a626e7512a (diff) | |
download | ATCD-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_operation/arglist.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp b/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp index aeb7d0d0ca9..76b455fc588 100644 --- a/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp +++ b/TAO/TAO_IDL/be/be_visitor_operation/arglist.cpp @@ -148,7 +148,7 @@ be_visitor_operation_arglist::visit_argument (be_argument *node) // inside the scope of the interface node. In such cases, we would like to // generate the appropriate relative scoped names. be_operation *op = - be_operation::narrow_from_scope (this->ctx_->scope ()); + dynamic_cast<be_operation*> (this->ctx_->scope ()); be_interface *intf = 0; // We need the interface node in which this operation was defined. However, @@ -157,15 +157,15 @@ be_visitor_operation_arglist::visit_argument (be_argument *node) if (op == 0) { be_factory *f = - be_factory::narrow_from_scope (this->ctx_->scope ()); + dynamic_cast<be_factory*> (this->ctx_->scope ()); - intf = be_interface::narrow_from_scope (f->defined_in ()); + intf = dynamic_cast<be_interface*> (f->defined_in ()); } else { intf = this->ctx_->attribute () - ? be_interface::narrow_from_scope (this->ctx_->attribute ()->defined_in ()) - : be_interface::narrow_from_scope (op->defined_in ()); + ? dynamic_cast<be_interface*> (this->ctx_->attribute ()->defined_in ()) + : dynamic_cast<be_interface*> (op->defined_in ()); } // Set new scope. |