Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Bug_3080 / Client_ORBInitializer.cpp
blob49a8ac8dc7facce06d71f5e1ed4f7109a81f9b0f
1 // -*- C++ -*-
2 #include "Client_ORBInitializer.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "Client_Request_Interceptor.h"
7 #include "tao/StringSeqC.h"
8 #include "tao/ORB_Constants.h"
9 #include "ace/OS_NS_string.h"
11 void
12 Client_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr)
16 void
17 Client_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr info)
19 // Install the client request interceptor.
20 ACE_NEW_THROW_EX (client_interceptor_,
21 Client_Request_Interceptor,
22 CORBA::NO_MEMORY (
23 CORBA::SystemException::_tao_minor_code (
24 TAO::VMCID,
25 ENOMEM),
26 CORBA::COMPLETED_NO));
28 PortableInterceptor::ClientRequestInterceptor_var
29 client_interceptor = client_interceptor_;
31 info->add_client_request_interceptor (client_interceptor.in ());
34 #endif /* TAO_HAS_INTERCEPTORS == 1 */