diff options
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp')
-rw-r--r-- | TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp index 6b3e59fdae6..7793cbff63c 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp @@ -120,19 +120,10 @@ int be_visitor_exception_ctor::visit_array (be_array *node) else bt = node; - *os << "const "; - - be_typedef *tdef = be_typedef::narrow_from_decl (bt); - - if (this->ctx_->state () != TAO_CodeGen::TAO_EXCEPTION_CTOR_CH - && !tdef) - *os << this->ctx_->scope ()->fullname () << "::"; - - if (!tdef) - *os << "_"; - - *os << bt->nested_type_name (this->ctx_->scope ()); - + if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) + *os << "const " << bt->nested_type_name (this->ctx_->scope ()); + else + *os << "const " << bt->name (); return 0; } |