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 | 27 |
1 files changed, 11 insertions, 16 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 747dd9d0e7f..f5647a4e9b1 100644 --- a/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp +++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_ctor.cpp @@ -166,9 +166,10 @@ int be_visitor_exception_ctor::visit_interface (be_interface *node) bt = node; if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope (), "_ptr "); + *os << "const " << bt->nested_type_name (this->ctx_->scope ()); else - *os << "const " << bt->name () << "_ptr "; + *os << "const " << bt->name (); + *os << "_ptr "; return 0; } @@ -184,9 +185,10 @@ int be_visitor_exception_ctor::visit_interface_fwd (be_interface_fwd *node) bt = node; if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope (), "_ptr "); + *os << "const " << bt->nested_type_name (this->ctx_->scope ()); else - *os << "const " << bt->name () << "_ptr "; + *os << "const " << bt->name (); + *os << "_ptr "; return 0; } @@ -214,9 +216,10 @@ int be_visitor_exception_ctor::visit_predefined_type (be_predefined_type *node) else if (node->pt () == AST_PredefinedType::PT_pseudo) // e.g., CORBA::Object { if (this->ctx_->state () == TAO_CodeGen::TAO_EXCEPTION_CTOR_CH) - *os << "const " << bt->nested_type_name (this->ctx_->scope (), "_ptr "); + *os << "const " << bt->nested_type_name (this->ctx_->scope ()); else - *os << "const " << bt->name () << "_ptr "; + *os << "const " << bt->name (); + *os << "_ptr "; } // end else if else // simple predefined types { @@ -248,19 +251,11 @@ int be_visitor_exception_ctor::visit_sequence (be_sequence *node) return 0; } -int be_visitor_exception_ctor::visit_string (be_string *node) +int be_visitor_exception_ctor::visit_string (be_string *) { TAO_OutStream *os = this->ctx_->stream (); // get output stream - - if (node->width () == sizeof (char)) - { - *os << "const char *"; - } - else - { - *os << "const CORBA::WChar *"; - } + *os << "const char *"; return 0; } |