summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_cs.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_cs.cpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_cs.cpp b/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_cs.cpp
index 4bd9bcf9feb..c93c81acee2 100644
--- a/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_sequence/gen_bounded_str_sequence_cs.cpp
@@ -75,6 +75,32 @@ be_visitor_sequence_cs::gen_bounded_str_sequence (be_sequence *node)
os->indent ();
+#if 0 /* Why is this here? ASG */
+ // generate the class name
+ be_type *pt; // base types
+
+ if (bt->node_type () == AST_Decl::NT_typedef)
+ {
+ // get the primitive base type of this typedef node
+ be_typedef *t = be_typedef::narrow_from_decl (bt);
+ pt = t->primitive_base_type ();
+ }
+ else
+ pt = bt;
+
+ // the accept is here the first time used and if an
+ // error occurs, it will occur here. Later no check
+ // for errors will be done.
+ if (pt->accept (visitor) == -1)
+ {
+ ACE_ERROR_RETURN ((LM_ERROR,
+ "(%N:%l) be_visitor_sequence_cs::"
+ "visit_sequence - "
+ "base type visit failed\n"),
+ -1);
+ }
+#endif /* 0 */
+
// allocate_buffer
*os << "void" << be_nl
<< full_class_name << "::_allocate_buffer (CORBA::ULong /* length */)" << be_nl