Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / Compression / Compression.cpp
blobc53b6117471c7dd55cdae7c270491b394b49317d
1 #include "tao/Compression/Compression.h"
2 #include "tao/Compression/Compression_Manager.h"
3 #include "tao/debug.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 CORBA::Object_ptr
8 TAO_Compression_Loader::create_object (CORBA::ORB_ptr, int, ACE_TCHAR *[])
10 CORBA::Object_ptr obj = CORBA::Object::_nil ();
11 ACE_NEW_RETURN (obj,
12 TAO::CompressionManager (),
13 CORBA::Object::_nil ());
14 return obj;
18 int
19 TAO_Compression_Loader::Initializer ()
21 return ACE_Service_Config::process_directive (
22 ace_svc_desc_TAO_Compression_Loader);
25 TAO_END_VERSIONED_NAMESPACE_DECL
27 ACE_STATIC_SVC_DEFINE (TAO_Compression_Loader,
28 ACE_TEXT ("Compression_Loader"),
29 ACE_SVC_OBJ_T,
30 &ACE_SVC_NAME (TAO_Compression_Loader),
31 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
34 ACE_FACTORY_DEFINE (TAO_Compression, TAO_Compression_Loader)