summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/IFRService/IFR_Service_Loader.cpp16
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