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.cpp13
1 files changed, 8 insertions, 5 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..c299eade4a8 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
@@ -77,11 +77,13 @@ be_visitor_sequence_cs::gen_bounded_str_sequence (be_sequence *node)
// allocate_buffer
*os << "void" << be_nl
- << full_class_name << "::_allocate_buffer (CORBA::ULong /* length */)" << be_nl
+ << full_class_name << "::_allocate_buffer (CORBA::ULong /* length */)"
+ << be_nl
<< "{" << be_idt_nl
- << "// For this class memory is never reallocated so the implementation" << be_nl
+ << "// For this class memory is never reallocated so the implementation"
+ << be_nl
<< "// is *really* simple." << be_nl
- << "this->buffer_ = " << full_class_name << "::allocbuf ("
+ << "this->buffer_ = " << class_name << "::allocbuf ("
<< node->max_size () << ");" << be_uidt_nl
<< "}" << be_nl
<< be_nl;
@@ -92,8 +94,9 @@ be_visitor_sequence_cs::gen_bounded_str_sequence (be_sequence *node)
<< "{" << be_idt_nl
<< "if (this->buffer_ == 0 || this->release_ == 0)" << be_idt_nl
<< "return;" << be_uidt_nl
- << "char **tmp = ACE_reinterpret_cast (char **, this->buffer_);" << be_nl
- << full_class_name << "::freebuf (tmp);" << be_nl
+ << "char **tmp = ACE_reinterpret_cast (char **, this->buffer_);"
+ << be_nl
+ << class_name << "::freebuf (tmp);" << be_nl
<< "this->buffer_ = 0;" << be_uidt_nl
<< "}" << be_nl
<< be_nl;