summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp
index 03c5ebe2613..aed377cc5c3 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/buffer_type.cpp
@@ -140,8 +140,13 @@ int
be_visitor_sequence_buffer_type::visit_string (be_string *node)
{
TAO_OutStream *os = this->ctx_->stream ();
+ be_type *bt = this->ctx_->alias ();
- if (node->width () == (long) sizeof (char))
+ if (bt != 0)
+ {
+ *os << bt->name ();
+ }
+ else if (node->width () == (long) sizeof (char))
{
*os << "char *";
}