summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
diff options
context:
space:
mode:
authormk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-30 10:21:53 +0000
committermk1 <mk1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-30 10:21:53 +0000
commitb0a2d132608c159cd59072281f044ccc62506f95 (patch)
tree1d2e1b44d1aac832199e0b61c577a3e504d120e4 /TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
parent238f6db29274d1338436622533a79c16d5114477 (diff)
downloadATCD-b0a2d132608c159cd59072281f044ccc62506f95.tar.gz
ChangeLogTag: Thu Sep 30 05:20:00 1999 Michael Kircher <Michael.Kircher@mchp.siemens.de>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp b/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
index 423cb088fc7..37eac53e169 100644
--- a/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_ami_pre_proc.cpp
@@ -328,13 +328,12 @@ be_visitor_ami_pre_proc::create_exception_holder (be_interface *node)
operation->set_defined_in (excep_holder);
// @@ Michael: this needs a fix!
- AST_Operation *op_base = ACE_reinterpret_cast (AST_Operation *,
- op);
+ be_operation *orig_op = be_operation::narrow_from_decl (op);
// Copy the exceptions.
- if (op_base->exceptions ())
+ if (orig_op->exceptions ())
{
- UTL_ExceptList *exceptions = (UTL_ExceptList *)op_base->exceptions ()->copy ();
+ UTL_ExceptList *exceptions = orig_op->exceptions ();
operation->be_add_exceptions (exceptions);
}
@@ -742,7 +741,7 @@ be_visitor_ami_pre_proc::create_excep_operation (be_operation *node,
field_type->set_defined_in (node->defined_in ());
#endif /* 0 */
// Create the argument
- be_argument *arg = new be_argument (AST_Argument::dir_OUT,
+ be_argument *arg = new be_argument (AST_Argument::dir_IN,
excep_holder, // is also a valuetype
new UTL_ScopedName (
new Identifier (