Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / POA_Current_Factory.cpp
blob7692b49cdc6ada21f6d6f54c88593928b41caf61
1 #include "tao/PortableServer/POA_Current_Factory.h"
2 #include "tao/PortableServer/POA_Current.h"
3 #include "tao/ORB_Core.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 CORBA::Object_ptr
8 TAO_POA_Current_Factory::create_object (CORBA::ORB_ptr,
9 int,
10 ACE_TCHAR * [])
12 TAO::Portable_Server::POA_Current* adapter = nullptr;
13 ACE_NEW_RETURN (adapter,
14 TAO::Portable_Server::POA_Current (),
15 nullptr);
16 return adapter;
19 ACE_FACTORY_DEFINE (TAO_PortableServer, TAO_POA_Current_Factory)
20 ACE_STATIC_SVC_DEFINE (TAO_POA_Current_Factory,
21 ACE_TEXT ("TAO_POA_Current_Factory"),
22 ACE_SVC_OBJ_T,
23 &ACE_SVC_NAME (TAO_POA_Current_Factory),
24 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
27 TAO_END_VERSIONED_NAMESPACE_DECL