Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / ZIOP / ZIOP_Stub_Factory.cpp
blob23ca0b113ab5f2ea71a6d6df273ec2d1492aad42
1 #include "tao/ZIOP/ZIOP_Stub_Factory.h"
3 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
5 #include "tao/ZIOP/ZIOP_Stub.h"
7 #include "tao/ORB_Constants.h"
8 #include "tao/SystemException.h"
10 #include "ace/Log_Msg.h"
12 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
14 TAO_ZIOP_Stub_Factory::~TAO_ZIOP_Stub_Factory ()
18 TAO_Stub *
19 TAO_ZIOP_Stub_Factory::create_stub (const char *repository_id,
20 const TAO_MProfile &profiles,
21 TAO_ORB_Core *orb_core)
23 TAO_Stub *retval = 0;
25 ACE_NEW_THROW_EX (retval,
26 TAO_ZIOP_Stub (repository_id, profiles, orb_core),
27 CORBA::NO_MEMORY (TAO::VMCID,
28 CORBA::COMPLETED_MAYBE));
30 return retval;
34 // ****************************************************************
36 ACE_STATIC_SVC_DEFINE (TAO_ZIOP_Stub_Factory,
37 ACE_TEXT ("ZIOP_Stub_Factory"),
38 ACE_SVC_OBJ_T,
39 &ACE_SVC_NAME (TAO_ZIOP_Stub_Factory),
40 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
42 ACE_FACTORY_DEFINE (TAO_ZIOP, TAO_ZIOP_Stub_Factory)
44 TAO_END_VERSIONED_NAMESPACE_DECL
46 #endif