summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-20 07:50:14 +0000
committernanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-04-20 07:50:14 +0000
commit74480633ca03353ac574030d0ab967d9cc1fb31e (patch)
treeeee6810742bda1837c3dc7e7124743a212047eac
parent9870127d8b66c871498248f1e00cc244d57ff3c5 (diff)
downloadATCD-74480633ca03353ac574030d0ab967d9cc1fb31e.tar.gz
test_exception: Changed to use ACE_THROW
-rw-r--r--TAO/tests/Param_Test/param_test_i.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/TAO/tests/Param_Test/param_test_i.cpp b/TAO/tests/Param_Test/param_test_i.cpp
index c09be8d9b98..a5d39e66fdb 100644
--- a/TAO/tests/Param_Test/param_test_i.cpp
+++ b/TAO/tests/Param_Test/param_test_i.cpp
@@ -686,7 +686,7 @@ Param_Test_i::test_any (const CORBA::Any &a1,
{
Param_Test::Big_Union *bu_in, *bu_inout, *bu_out, *bu_ret;
a1 >>= bu_in;
-
+
// Insert copies....
a2 <<= *bu_in;
*a3 <<= *bu_in;
@@ -761,13 +761,8 @@ Param_Test_i::test_exception (CORBA::ULong s1,
return s1 * 4;
}
else if (d == 1)
- {
- ACE_TRY_ENV.exception (new Param_Test::Ooops (CORBA::string_dup (" % 3 == 1"),
- s1));
- return 0;
- }
- ACE_TRY_ENV.exception (new Param_Test::BadBoy);
- return 0;
+ ACE_THROW_RETURN (Param_Test::Ooops (CORBA::string_dup (" % 3 == 1"), s1), 0);
+ ACE_THROW_RETURN (Param_Test::BadBoy (), 0);
}
Param_Test::Big_Union*
@@ -788,7 +783,7 @@ Param_Test_i::test_multdim_array (const Param_Test::Multdim_Array a1,
Param_Test::Multdim_Array a2,
Param_Test::Multdim_Array_out a3,
CORBA::Environment &)
-{
+{
Param_Test::Multdim_Array_slice *ret;
Param_Test::Multdim_Array_copy (a2, a1);