diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-07-17 20:11:09 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-07-17 20:11:09 +0000 |
commit | 1652575e436322e222dfe26fa8effb80e92d4600 (patch) | |
tree | 2b7aa1bd7299e79e66191bdf24d0478c6c411eb2 | |
parent | c4e7b4e98f456ab130e8d3bb154bccf5aad6ffc1 (diff) | |
download | ATCD-1652575e436322e222dfe26fa8effb80e92d4600.tar.gz |
Changed a return value from zero to CORBA::Object::_nil () since
the return type is CORBA::Object_ptr.
-rw-r--r-- | TAO/tao/ORB.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/TAO/tao/ORB.cpp b/TAO/tao/ORB.cpp index 4c2230541fc..a0c5c185522 100644 --- a/TAO/tao/ORB.cpp +++ b/TAO/tao/ORB.cpp @@ -936,9 +936,11 @@ CORBA_ORB::resolve_initial_references (const char *name, return this->string_to_object (list_of_profiles.c_str (), ACE_TRY_ENV); } - - // Clean up. - delete [] default_init_ref; + else + { + // Clean up. + delete [] default_init_ref; + } } // Did not find it in the InitRef table, or in the DefaultInitRef @@ -954,7 +956,7 @@ CORBA_ORB::resolve_initial_references (const char *name, return this->resolve_implrepo_service (timeout, ACE_TRY_ENV); else - ACE_THROW_RETURN (CORBA::ORB::InvalidName (), 0); + ACE_THROW_RETURN (CORBA::ORB::InvalidName (), CORBA::Object::_nil ()); } |