diff options
Diffstat (limited to 'TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp')
-rw-r--r-- | TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp b/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp index cf7bf293187..de3a2ec9066 100644 --- a/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp +++ b/TAO/orbsvcs/tests/AVStreams/Pluggable_Flow_Protocol/receiver.cpp @@ -92,8 +92,7 @@ Receiver::~Receiver (void) int Receiver::init (int, - char ** - ACE_ENV_ARG_DECL) + char **) { // Initialize the endpoint strategy with the orb and poa. int result = @@ -129,8 +128,7 @@ Receiver::init (int, // Register the receiver object with the naming server. this->naming_client_->rebind (name, - mmdevice.in () - ACE_ENV_ARG_PARAMETER); + mmdevice.in ()); return 0; } @@ -166,8 +164,7 @@ int main (int argc, char **argv) { - ACE_DECLARE_NEW_CORBA_ENV; - ACE_TRY + try { ACE_High_Res_Timer::global_scale_factor (); @@ -175,17 +172,14 @@ main (int argc, CORBA::ORB_var orb = CORBA::ORB_init (argc, argv, - 0 - ACE_ENV_ARG_PARAMETER); + 0); CORBA::Object_var obj - = orb->resolve_initial_references ("RootPOA" - ACE_ENV_ARG_PARAMETER); + = orb->resolve_initial_references ("RootPOA"); // Get the POA_var object from Object_var. PortableServer::POA_var root_poa = - PortableServer::POA::_narrow (obj.in () - ACE_ENV_ARG_PARAMETER); + PortableServer::POA::_narrow (obj.in ()); PortableServer::POAManager_var mgr = root_poa->the_POAManager (); @@ -194,8 +188,7 @@ main (int argc, // Initialize the AVStreams components. TAO_AV_CORE::instance ()->init (orb.in (), - root_poa.in () - ACE_ENV_ARG_PARAMETER); + root_poa.in ()); int result = parse_args (argc, @@ -220,8 +213,7 @@ main (int argc, Receiver receiver; result = receiver.init (argc, - argv - ACE_ENV_ARG_PARAMETER); + argv); if (result != 0) return result; @@ -236,12 +228,11 @@ main (int argc, orb->destroy (); } - ACE_CATCHANY + catch (const CORBA::Exception& ex) { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,"receiver::init"); + ex._tao_print_exception ("receiver::init"); return -1; } - ACE_ENDTRY; ACE_OS::fclose (output_file); |