summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp b/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp
index 606cca9c31e..ac8e6a73120 100644
--- a/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_union_branch/public_reset_cs.cpp
@@ -319,7 +319,7 @@ be_visitor_union_branch_public_reset_cs::visit_sequence (be_sequence *)
}
int
-be_visitor_union_branch_public_reset_cs::visit_string (be_string *node)
+be_visitor_union_branch_public_reset_cs::visit_string (be_string *)
{
be_union_branch *ub =
this->ctx_->be_node_as_union_branch (); // get union branch
@@ -336,17 +336,8 @@ be_visitor_union_branch_public_reset_cs::visit_string (be_string *node)
}
TAO_OutStream *os = this->ctx_->stream ();
-
- if (node->width () == sizeof (char))
- {
- *os << "CORBA::string_free (this->u_.";
- }
- else
- {
- *os << "CORBA::wstring_free (this->u_.";
- }
-
- *os << ub->local_name () << "_);" << be_nl
+ *os << "CORBA::string_free (this->u_."
+ << ub->local_name () << "_);" << be_nl
<< "this->u_."
<< ub->local_name ()
<< "_ = 0;" << be_nl