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.cpp3
1 files changed, 1 insertions, 2 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 7686eb88d75..3c1d6e42452 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
@@ -359,8 +359,7 @@ be_visitor_union_branch_private_ch::visit_structure (be_structure *node)
os->indent ();
// if we are variable sized, we need a pointer type
- if (node->size_type () == be_decl::VARIABLE
- || node->has_constructor ())
+ if (node->size_type () == be_type::VARIABLE)
{
*os << bt->nested_type_name (bu) << " *" << ub->local_name () << "_;\n";
}