Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Dynamic / Echo_Client_ORBInitializer.cpp
blob024e5d6fd5e4cfb7aba081216c11c7203a7791c4
1 // -*- C++ -*-
2 #include "Echo_Client_ORBInitializer.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "client_interceptor.h"
8 Echo_Client_ORBInitializer::Echo_Client_ORBInitializer (int& result) : result_ (result)
12 void
13 Echo_Client_ORBInitializer::pre_init (
14 PortableInterceptor::ORBInitInfo_ptr)
18 void
19 Echo_Client_ORBInitializer::post_init (
20 PortableInterceptor::ORBInitInfo_ptr info)
22 PortableInterceptor::ClientRequestInterceptor_ptr interceptor =
23 PortableInterceptor::ClientRequestInterceptor::_nil ();
25 // Install the Echo client request interceptor
26 ACE_NEW_THROW_EX (interceptor,
27 Echo_Client_Request_Interceptor (this->result_),
28 CORBA::NO_MEMORY ());
30 PortableInterceptor::ClientRequestInterceptor_var
31 client_interceptor = interceptor;
33 info->add_client_request_interceptor (client_interceptor.in ());
36 #endif /* TAO_HAS_INTERCEPTORS == 1 */