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.cpp16
1 files changed, 6 insertions, 10 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 8060bc61a8d..5af3eaedb71 100644
--- a/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
+++ b/TAO/TAO_IDL/be/be_visitor_exception/exception_cs.cpp
@@ -245,12 +245,10 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
{
*os << "TAO_OutputCDR &cdr) const" << be_nl
<< "{" << be_idt_nl
- << "if (cdr << *this)" << be_idt_nl
+ << "if (!(cdr << *this))" << be_idt_nl
<< "{" << be_idt_nl
- << "return;" << be_uidt_nl
- << "}" << be_uidt_nl << be_nl;
-
- *os << "throw ::CORBA::MARSHAL ();" << be_uidt_nl;
+ << "throw ::CORBA::MARSHAL ();" << be_uidt_nl
+ << "}" << be_uidt << be_uidt_nl;
*os << "}" << be_nl << be_nl;
}
@@ -271,12 +269,10 @@ int be_visitor_exception_cs::visit_exception (be_exception *node)
{
*os << "TAO_InputCDR &cdr)" << be_nl
<< "{" << be_idt_nl
- << "if (cdr >> *this)" << be_idt_nl
+ << "if (!(cdr >> *this))" << be_idt_nl
<< "{" << be_idt_nl
- << "return;" << be_uidt_nl
- << "}" << be_uidt_nl << be_nl;
-
- *os << "throw ::CORBA::MARSHAL ();" << be_uidt_nl;
+ << "throw ::CORBA::MARSHAL ();" << be_uidt_nl
+ << "}" << be_uidt << be_uidt_nl;
*os << "}" << be_nl << be_nl;
}