summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp')
-rw-r--r--TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
index 1f7eb4b6f44..5745089998e 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
@@ -154,9 +154,7 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
*os << "CORBA::Exception *" << node->name ()
<< "::_alloc (void)" << be_nl;
*os << "{" << be_idt_nl;
- *os << "CORBA::Exception *retval = 0;" << be_nl
- << "ACE_NEW_RETURN (retval, " << node->name () << ", 0);" << be_nl
- << "return retval;" << be_uidt_nl;
+ *os << "return new " << node->name () << ";" << be_uidt_nl;
*os << "}\n\n";
// constructor taking all members. It exists only if there are any