Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / RTCORBA / Bug_3382_Regression / Client_ORBInitializer.cpp
blob8b3e04d3774931ab1634dfc960c56c91af536543
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)
16 void
17 Client_ORBInitializer::post_init (
18 PortableInterceptor::ORBInitInfo_ptr info)
20 CORBA::String_var orb_id =
21 info->orb_id ();
23 PortableInterceptor::ClientRequestInterceptor_ptr interceptor =
24 PortableInterceptor::ClientRequestInterceptor::_nil ();
26 // Install the Echo client request interceptor
27 ACE_NEW_THROW_EX (interceptor,
28 Client_Request_Interceptor (orb_id.in ()),
29 CORBA::NO_MEMORY ());
31 PortableInterceptor::ClientRequestInterceptor_var
32 client_interceptor = interceptor;
34 info->add_client_request_interceptor (client_interceptor.in ());