diff options
author | dengg <dengg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-08 18:04:16 +0000 |
---|---|---|
committer | dengg <dengg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-08 18:04:16 +0000 |
commit | f2467c5915867c006aa16fd22e482816e029a2db (patch) | |
tree | 61d8fcb4aa8a71d9034ff510ee52b2b7ca13fb5c /TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp | |
parent | a2b8eda5d51dca5496c94600a7d3082b1a5f3601 (diff) | |
download | ATCD-f2467c5915867c006aa16fd22e482816e029a2db.tar.gz |
made a copyReDaC_01
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp index fd81da7b806..a5e914dcf87 100644 --- a/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp +++ b/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp @@ -80,19 +80,19 @@ TAO_IFR_Service_Loader::create_object (CORBA::ORB_ptr orb, ACE_ENV_ARG_DECL_NOT_USED) ACE_THROW_SPEC ((CORBA::SystemException)) { + int result; + // Initializes the IFR_Service Service. Returns -1 // on an error. - int result = this->ifr_server_.init_with_orb (argc, - argv, - orb); - if (result != 0) + result = this->ifr_server_.init_with_orb (argc, + argv, + orb); + if (result == -1) { - ACE_THROW_RETURN (CORBA::BAD_PARAM (0, - CORBA::COMPLETED_NO), - CORBA::Object::_nil ()); + return CORBA::Object::_nil (); } - return CORBA::Object::_nil (); + return 0; } TAO_END_VERSIONED_NAMESPACE_DECL |