summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_union.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_union.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_union.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_union.cpp b/TAO/TAO_IDL/be/be_union.cpp
index 4a1669e9a79..13fdaecdad1 100644
--- a/TAO/TAO_IDL/be/be_union.cpp
+++ b/TAO/TAO_IDL/be/be_union.cpp
@@ -1121,6 +1121,17 @@ be_union::tc_encap_len (void)
return this->encap_len_;
}
+int be_union::write_as_return (TAO_OutStream *stream,
+ be_type *type)
+{
+ *stream << type->name ();
+ if (this->size_type () == be_decl::VARIABLE)
+ {
+ *stream << " *";
+ }
+ return 0;
+}
+
int
be_union::accept (be_visitor *visitor)
{