diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
commit | 40fdc8a404e75ab03b68cc62e9987cf208fd8c30 (patch) | |
tree | 37d9c4d3abe4aefd8a34ed797883dd2cd4862ca7 /TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp | |
parent | c254b281f1b9a4ca19dd0c3ee73a0654a7718909 (diff) | |
download | ATCD-40fdc8a404e75ab03b68cc62e9987cf208fd8c30.tar.gz |
This commit was manufactured by cvs2svn to create branchtypecode-overhaul
'typecode-overhaul'.
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp index 234c493816d..f632dcd0e42 100644 --- a/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/PortableGroup/PortableGroup_Loader.cpp @@ -4,11 +4,10 @@ #include "PortableGroup_Loader.h" #include "PortableGroup_ORBInitializer.h" -#include "ace/Dynamic_Service.h" #include "tao/ORB_Core.h" -ACE_RCSID (PortableGroup, - PortableGroup_Loader, +ACE_RCSID (PortableGroup, + PortableGroup_Loader, "$Id$") TAO_PortableGroup_Loader::TAO_PortableGroup_Loader (void) @@ -20,6 +19,7 @@ TAO_PortableGroup_Loader::init (int /*argc*/, char* /*argv*/ []) { ACE_TRACE ("TAO_PortableGroup_Loader::init"); + // Register the ORB initializer. ACE_TRY_NEW_ENV { @@ -56,17 +56,10 @@ TAO_PortableGroup_Loader::init (int /*argc*/, int TAO_PortableGroup_Loader::Initializer (void) { - ACE_Service_Config::process_directive (ace_svc_desc_TAO_PortableGroup_Loader); - TAO_PortableGroup_Loader *tmp = - ACE_Dynamic_Service<TAO_PortableGroup_Loader>::instance ( - "PortableGroup_Loader"); + ACE_Service_Config::static_svcs ()-> + insert (&ace_svc_desc_TAO_PortableGroup_Loader); - if (tmp != 0) - { - return tmp->init (0, 0); - } - - return -1; + return 0; } ACE_STATIC_SVC_DEFINE (TAO_PortableGroup_Loader, |