summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
index 9fbe2ab935a..6c98c9b7dc2 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp
@@ -241,15 +241,8 @@ be_visitor_union_branch_private_ch::visit_predefined_type (be_predefined_type *n
{
// Cannot have an object inside of a union
os->indent (); // start from current indentation
- // check if we are dealing with a CORBA::Object
- if (!ACE_OS::strcmp (bt->local_name ()->get_string (), "Object"))
- {
- *os << "TAO_Object_Field_T<CORBA::Object> *" << ub->local_name ()
- << "_;\n";
- }
- else
- *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name ()
- << "_;\n";
+ *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () <<
+ "_;\n";
}
else if (node->pt () == AST_PredefinedType::PT_any)
{