summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2005-03-26 02:09:15 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2005-03-26 02:09:15 +0000
commit66cbf514d41c48e0990fe73eb1800b7eb8ebce82 (patch)
treecaa5761779da38515de7eca0333c067ffcd4f04c /TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp
parent0ba03982055d71ab990a504521ec6fe33fd0495f (diff)
downloadATCD-66cbf514d41c48e0990fe73eb1800b7eb8ebce82.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp b/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp
index 1d40d5ced7b..8756f70e3fc 100644
--- a/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_typecode/struct_typecode.cpp
@@ -38,17 +38,15 @@ TAO::be_visitor_struct_typecode::visit_structure (AST_Structure * node)
+ node->flat_name ());
// Generate array containing struct field characteristics.
- os << "static TAO::TypeCode::Struct_Field<char const *> "
- << fields_name.c_str ();
-
+ os << "static TAO::TypeCode::Struct_Field<char const *> ";
if (node->nfields () == 0)
{
- os << " * const = 0;" << be_nl;
+ os << " * const " << fields_name.c_str () << " = 0;" << be_nl;
}
else
{
- os << "[] =" << be_idt_nl
+ os << fields_name.c_str () << "[] =" << be_idt_nl
<< "{" << be_idt_nl;
if (this->visit_members (node) != 0)