summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-27 03:06:37 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-02-27 03:06:37 +0000
commit2ac217a84312d7557591414ded160e89f8465b3a (patch)
tree79f22637391fd72fbc976f026fdb99688aa06cc4 /TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp
parentdf943c4b0825b012237da31889109f785aad20dd (diff)
downloadATCD-2ac217a84312d7557591414ded160e89f8465b3a.tar.gz
ChangeLogTag:Fri Feb 26 21:03:47 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp
index 892d4eab0d7..de032dbda1c 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_access_cs.cpp
@@ -66,15 +66,9 @@ visit_union_branch (be_union_branch *node)
}
this->ctx_->node (node); // save the node
-
- if (node->label ()->label_val ()->ec () == AST_Expression::EC_symbol)
- {
- *os << "case " << node->label ()->label_val ()->n () << ":" << be_idt_nl;
- }
- else
- {
- *os << "case " << node->label ()->label_val () << ":" << be_idt_nl;
- }
+ *os << "case ";
+ node->gen_label_value (os);
+ *os << ":" << be_idt_nl;
if (bt->accept (this) == -1)
{
@@ -119,7 +113,7 @@ be_visitor_union_branch_public_access_cs::visit_array (be_array *node)
char fname [NAMEBUFSIZE]; // to hold the full and
// save the node's local name and full name in a buffer for quick use later
- // on
+ // on
ACE_OS::memset (fname, '\0', NAMEBUFSIZE);
if (bt->node_type () != AST_Decl::NT_typedef // not a typedef
&& bt->is_child (bu)) // bt is defined inside the union
@@ -131,7 +125,7 @@ be_visitor_union_branch_public_access_cs::visit_array (be_array *node)
if (bt->is_nested ())
{
be_decl *parent = be_scope::narrow_from_scope (bt->defined_in ())->decl ();
- ACE_OS::sprintf (fname, "%s::_%s", parent->fullname (),
+ ACE_OS::sprintf (fname, "%s::_%s", parent->fullname (),
bt->local_name ()->get_string ());
}
else
@@ -193,7 +187,7 @@ be_visitor_union_branch_public_access_cs::visit_interface (be_interface *)
), -1);
}
TAO_OutStream *os = this->ctx_->stream ();
- *os << "return (CORBA::Object_ptr *) &this->u_." << ub->local_name ()
+ *os << "return (CORBA::Object_ptr *) &this->u_." << ub->local_name ()
<< "_->inout ();" << be_uidt_nl;
return 0;