Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / Bug_3079 / Server_ORBInitializer.cpp
blob8102a86f94b2f3494d5cfdf1ab76eb5710d6f78f
1 // -*- C++ -*-
2 #include "Server_ORBInitializer.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "Server_Request_Interceptor.h"
7 #include "tao/ORB_Constants.h"
9 Server_ORBInitializer::Server_ORBInitializer ()
13 void
14 Server_ORBInitializer::pre_init (
15 PortableInterceptor::ORBInitInfo_ptr)
19 void
20 Server_ORBInitializer::post_init (
21 PortableInterceptor::ORBInitInfo_ptr info)
23 PortableInterceptor::ServerRequestInterceptor_ptr interceptor;
24 ACE_NEW_THROW_EX (interceptor,
25 Server_Request_Interceptor,
26 CORBA::NO_MEMORY (
27 CORBA::SystemException::_tao_minor_code (
28 TAO::VMCID,
29 ENOMEM),
30 CORBA::COMPLETED_NO));
32 PortableInterceptor::ServerRequestInterceptor_var
33 server_interceptor = interceptor;
35 info->add_server_request_interceptor (interceptor);
38 #endif /* TAO_HAS_INTERCEPTORS == 1 */