diff options
author | bala <balanatarajan@users.noreply.github.com> | 2002-10-25 00:40:19 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2002-10-25 00:40:19 +0000 |
commit | b5bf0a84214643cf9ebe78b9af6d25b5e88819ae (patch) | |
tree | 7186f9cc2016f800491b0c27a7e73fb24ce91220 /TAO/orbsvcs/tests/Interoperable_Naming | |
parent | 90fbb0ec72c125c24f9cd0a59702b02d00f1b4be (diff) | |
download | ATCD-b5bf0a84214643cf9ebe78b9af6d25b5e88819ae.tar.gz |
ChangeLogTag: Thu Oct 24 19:32:08 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Diffstat (limited to 'TAO/orbsvcs/tests/Interoperable_Naming')
-rw-r--r-- | TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp index abfcdcf8219..02ed8e5d823 100644 --- a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp +++ b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp @@ -170,11 +170,8 @@ NContextExt_Client_i::run (ACE_ENV_SINGLE_ARG_DECL) { // Resolve the name using the stringified form of the name factory_object = - this->naming_context_->resolve_str ( - ACE_const_cast (const CosNaming::NamingContextExt::StringName, - str_name.in ()) - ACE_ENV_ARG_PARAMETER - ); + this->naming_context_->resolve_str (str_name.in () + ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (InnerBlock); } ACE_CATCH (CosNaming::NamingContext::NotFound, ex) @@ -184,8 +181,7 @@ NContextExt_Client_i::run (ACE_ENV_SINGLE_ARG_DECL) // Narrow Web_Server::Iterator_Factory_var factory = - Web_Server::Iterator_Factory::_narrow (factory_object.in () - ACE_ENV_ARG_PARAMETER); + Web_Server::Iterator_Factory::_narrow (factory_object.in () ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (OuterBlock); @@ -202,11 +198,8 @@ NContextExt_Client_i::run (ACE_ENV_SINGLE_ARG_DECL) // Convert the stringified name back as CosNaming::Name and print // them out. CosNaming::Name *nam = - this->naming_context_->to_name ( - ACE_const_cast (const CosNaming::NamingContextExt::StringName, - str_name.in ()) - ACE_ENV_ARG_PARAMETER - ); + this->naming_context_->to_name (str_name.in () + ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (OuterBlock); // Declare a CosNaming::Name variable and assign length to it. @@ -230,13 +223,9 @@ NContextExt_Client_i::run (ACE_ENV_SINGLE_ARG_DECL) CORBA::String_var obj_name = get_name (); CORBA::String_var url_string = - this->naming_context_->to_url ( - ACE_const_cast (const CosNaming::NamingContextExt::Address, - address.in ()), - ACE_const_cast (const CosNaming::NamingContextExt::StringName, - obj_name.in ()) - ACE_ENV_ARG_PARAMETER - ); + this->naming_context_->to_url (address.in (), + obj_name.in() + ACE_ENV_ARG_PARAMETER); ACE_TRY_CHECK_EX (OuterBlock); if (this->view_ == 0) |