summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp b/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
index 1c04abc57a8..a3256880c8e 100644
--- a/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_operation/operation_ss.cpp
@@ -16,7 +16,7 @@ be_visitor_operation_ss::be_visitor_operation_ss (be_visitor_context *ctx)
{
}
-be_visitor_operation_ss::~be_visitor_operation_ss (void)
+be_visitor_operation_ss::~be_visitor_operation_ss ()
{
}
@@ -30,7 +30,7 @@ be_visitor_operation_ss::visit_operation (be_operation * node)
}
TAO_OutStream *os = this->ctx_->stream ();
- be_type *bt = 0;
+ be_type *bt = nullptr;
this->ctx_->node (node);
@@ -43,7 +43,7 @@ be_visitor_operation_ss::visit_operation (be_operation * node)
}
// Retrieve the operation return type.
- bt = be_type::narrow_from_decl (node->return_type ());
+ bt = dynamic_cast<be_type*> (node->return_type ());
if (!bt)
{
@@ -65,7 +65,7 @@ be_visitor_operation_ss::visit_argument (be_argument *node)
TAO_OutStream *os = this->ctx_->stream ();
// Retrieve the type for this argument.
- be_type *bt = be_type::narrow_from_decl (node->field_type ());
+ be_type *bt = dynamic_cast<be_type*> (node->field_type ());
if (!bt)
{
@@ -127,9 +127,9 @@ be_visitor_operation_ss::gen_skel_operation_body (be_operation * node,
? this->ctx_->attribute ()->defined_in ()
: node->defined_in ();
- be_interface *intf = be_interface::narrow_from_scope (s);
+ be_interface *intf = dynamic_cast<be_interface*> (s);
- if (intf == 0)
+ if (intf == nullptr)
{
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("be_visitor_operation_ss::")
@@ -220,17 +220,17 @@ be_visitor_operation_ss::gen_skel_operation_body (be_operation * node,
*os << be_nl_2
<< "TAO::Argument * const args[] =" << be_idt_nl
<< "{" << be_idt_nl
- << "&retval";
+ << "std::addressof(retval)";
for (UTL_ScopeActiveIterator arg_list_iter (node, UTL_Scope::IK_decls);
! arg_list_iter.is_done ();
arg_list_iter.next ())
{
AST_Argument * const arg =
- AST_Argument::narrow_from_decl (arg_list_iter.item ());
+ dynamic_cast<AST_Argument*> (arg_list_iter.item ());
*os << "," << be_nl
- << "&_tao_" << arg->local_name ();
+ << "std::addressof(_tao_" << arg->local_name () << ")";
}
*os << be_uidt_nl
@@ -280,7 +280,7 @@ be_visitor_operation_ss::gen_skel_operation_body (be_operation * node,
}
else
{
- *os << " , 0" << be_nl
+ *os << " , nullptr" << be_nl
<< " , 0";
}
@@ -300,7 +300,7 @@ be_visitor_operation_ss::gen_skel_body_arglist (be_operation * node,
arg_decl_iter.next ())
{
AST_Argument * const arg =
- AST_Argument::narrow_from_decl (arg_decl_iter.item ());
+ dynamic_cast<AST_Argument*> (arg_decl_iter.item ());
*os << be_nl
<< "TAO::SArg_Traits< ";