diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-09-18 20:01:59 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-09-18 20:01:59 +0000 |
commit | 439a6405b530dbba7a6de2e4a852233866c0f22a (patch) | |
tree | 9843791b1b85c72734b87dc6ba085637ffc6f161 /TAO/TAO_IDL/be/be_visitor_union_branch/private_ch.cpp | |
parent | 71b11e7c055bc1d51d4ae3ce2e5edf8a86b14bd3 (diff) | |
download | ATCD-439a6405b530dbba7a6de2e4a852233866c0f22a.tar.gz |
ChangeLogTag: Mon Sep 18 19:54:49 UTC 2006 Jeff Parsons <j.parsons@vanderbilt.edu>
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.cpp | 11 |
1 files changed, 7 insertions, 4 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 41b1fd747bb..ed55708c8ca 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 @@ -389,23 +389,26 @@ be_visitor_union_branch_private_ch::visit_predefined_type ( *os << be_nl << (td == 0 ? "::" : ""); + + AST_PredefinedType::PredefinedType pt = node->pt (); - if (node->pt () == AST_PredefinedType::PT_object) + if (pt == AST_PredefinedType::PT_object + || pt == AST_PredefinedType::PT_abstract) { *os << bt->name () << "_var" << " *" << ub->local_name () << "_;"; } - else if (node->pt () == AST_PredefinedType::PT_pseudo) + else if (pt == AST_PredefinedType::PT_pseudo) { *os << bt->nested_type_name (bu, "_ptr") << " " << ub->local_name () << "_;"; } - else if (node->pt () == AST_PredefinedType::PT_value) + else if (pt == AST_PredefinedType::PT_value) { *os << bt->nested_type_name (bu, " *") << " " << ub->local_name () << "_;"; } - else if (node->pt () == AST_PredefinedType::PT_any) + else if (pt == AST_PredefinedType::PT_any) { // Cannot have an object inside of a union. In addition, an Any is a // variable data type. |