summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-25 03:08:21 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-01-25 03:08:21 +0000
commit2337a7ed20a230307e4b06e9688df46a35df6227 (patch)
tree07f434e4e72a1388f73cbddcef0b697e0b46d5ed /TAO/orbsvcs/Naming_Service/Naming_Service.cpp
parent2fdf70efe75c03862b97d4335d8f13d2ba2a1db3 (diff)
downloadATCD-2337a7ed20a230307e4b06e9688df46a35df6227.tar.gz
ChangeLogTag:Sat Jan 24 21:01:00 1998 <coryan@MILONGA>
Diffstat (limited to 'TAO/orbsvcs/Naming_Service/Naming_Service.cpp')
-rw-r--r--TAO/orbsvcs/Naming_Service/Naming_Service.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp b/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
index 36152b29adb..99be942d8a2 100644
--- a/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
+++ b/TAO/orbsvcs/Naming_Service/Naming_Service.cpp
@@ -105,13 +105,13 @@ main (int argc, char ** argv)
// Initialize the Object Adapter
CORBA::Object_var poa_object =
orb->resolve_initial_references("RootPOA");
- if (poa_object == 0)
+ if (CORBA::is_nil (poa_object.in ()))
ACE_ERROR_RETURN ((LM_ERROR,
" (%P|%t) Unable to initialize the POA.\n"),
1);
PortableServer::POA_var root_poa =
- PortableServer::POA::_narrow (poa_object, TAO_TRY_ENV);
+ PortableServer::POA::_narrow (poa_object.in (), TAO_TRY_ENV);
TAO_CHECK_ENV;
PortableServer::POAManager_var poa_manager =