diff options
Diffstat (limited to 'TAO/tests/DynAny_Test/driver.cpp')
-rw-r--r-- | TAO/tests/DynAny_Test/driver.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/TAO/tests/DynAny_Test/driver.cpp b/TAO/tests/DynAny_Test/driver.cpp index 3bef704e0e8..5db43f01425 100644 --- a/TAO/tests/DynAny_Test/driver.cpp +++ b/TAO/tests/DynAny_Test/driver.cpp @@ -66,13 +66,12 @@ Driver::~Driver (void) int Driver::init (int argc, char* argv[]) { - ACE_TRY_NEW_ENV + try { // Retrieve the underlying ORB this->orb_ = CORBA::ORB_init (argc, argv, - "local" - ACE_ENV_ARG_PARAMETER); + "local"); // Parse command line and verify parameters. @@ -83,13 +82,11 @@ Driver::init (int argc, char* argv[]) -1); } - ACE_CATCHANY + catch (const CORBA::Exception& ex) { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "Driver::init"); + ex._tao_print_exception ("Driver::init"); return -1; } - ACE_ENDTRY; return 0; } |