Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Bug_1495_Regression / Client_ORBInitializer.cpp
blobffcdab9ef9d4befae1282fa59b942382ed7f97b9
1 // -*- C++ -*-
3 #include "Client_ORBInitializer.h"
4 #include "interceptors.h"
6 Client_ORBInitializer::Client_ORBInitializer ()
10 void
11 Client_ORBInitializer::pre_init (
12 PortableInterceptor::ORBInitInfo_ptr)
14 // No Op
17 void
18 Client_ORBInitializer::post_init (
19 PortableInterceptor::ORBInitInfo_ptr info)
21 CORBA::String_var orb_id =
22 info->orb_id ();
24 PortableInterceptor::ClientRequestInterceptor_ptr interceptor =
25 PortableInterceptor::ClientRequestInterceptor::_nil ();
27 // Install the Echo client request interceptor
28 ACE_NEW_THROW_EX (interceptor,
29 Echo_Client_Request_Interceptor (orb_id.in ()),
30 CORBA::NO_MEMORY ());
32 PortableInterceptor::ClientRequestInterceptor_var
33 client_interceptor = interceptor;
35 info->add_client_request_interceptor (client_interceptor.in ());