diff options
Diffstat (limited to 'TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp')
-rw-r--r-- | TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp index 15751d6f087..4f1ff3e4708 100644 --- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp +++ b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Echo_Client_ORBInitializer.cpp @@ -32,25 +32,21 @@ Echo_Client_ORBInitializer::post_init ( TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info ACE_ENV_ARG_PARAMETER); - ACE_CHECK; CORBA::ORB_var orb = CORBA::ORB::_duplicate(tao_info->orb_core()->orb()); if (CORBA::is_nil(orb.in())) { ACE_THROW (CORBA::INTERNAL ()); - ACE_CHECK; } PortableInterceptor::ORBInitInfo_3_1_var info_3_1 = PortableInterceptor::ORBInitInfo_3_1::_narrow(info ACE_ENV_ARG_PARAMETER); - ACE_CHECK; if (CORBA::is_nil(info_3_1.in())) { ACE_THROW (CORBA::INTERNAL ()); - ACE_CHECK; } PortableInterceptor::ClientRequestInterceptor_ptr interceptor = @@ -60,7 +56,6 @@ Echo_Client_ORBInitializer::post_init ( ACE_NEW_THROW_EX (interceptor, Echo_Client_Request_Interceptor, CORBA::NO_MEMORY ()); - ACE_CHECK; PortableInterceptor::ClientRequestInterceptor_var client_interceptor = interceptor; @@ -75,16 +70,13 @@ Echo_Client_ORBInitializer::post_init ( orb->create_policy (PortableInterceptor::PROCESSING_MODE_POLICY_TYPE, client_proc_mode_as_any ACE_ENV_ARG_PARAMETER); - ACE_CHECK; info_3_1->add_client_request_interceptor_with_policy ( client_interceptor.in (), policy_list ACE_ENV_ARG_PARAMETER); - ACE_CHECK; - policy_list[0]->destroy (ACE_ENV_SINGLE_ARG_PARAMETER); - ACE_CHECK; + policy_list[0]->destroy (); policy_list[0] = CORBA::Policy::_nil (); } |