diff options
author | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-10-23 18:39:52 +0000 |
---|---|---|
committer | parsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2002-10-23 18:39:52 +0000 |
commit | c878b3fb9333bb6510e825991d1ccbf445c8a500 (patch) | |
tree | 34668e75fa8cfb44f79e96916eedf34afe99c6bb /TAO/orbsvcs/tests/Interoperable_Naming | |
parent | 704b721d334c226c394e3380bcbe243b9e6275a5 (diff) | |
download | ATCD-c878b3fb9333bb6510e825991d1ccbf445c8a500.tar.gz |
ChangeLogTag: Wed Oct 23 10:26:59 2002 Jeff Parsons <parsons@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, 19 insertions, 8 deletions
diff --git a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp index 02ed8e5d823..abfcdcf8219 100644 --- a/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp +++ b/TAO/orbsvcs/tests/Interoperable_Naming/ncontextext_client_i.cpp @@ -170,8 +170,11 @@ 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 (str_name.in () - ACE_ENV_ARG_PARAMETER); + this->naming_context_->resolve_str ( + ACE_const_cast (const CosNaming::NamingContextExt::StringName, + str_name.in ()) + ACE_ENV_ARG_PARAMETER + ); ACE_TRY_CHECK_EX (InnerBlock); } ACE_CATCH (CosNaming::NamingContext::NotFound, ex) @@ -181,7 +184,8 @@ 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); @@ -198,8 +202,11 @@ 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 (str_name.in () - ACE_ENV_ARG_PARAMETER); + this->naming_context_->to_name ( + ACE_const_cast (const CosNaming::NamingContextExt::StringName, + str_name.in ()) + ACE_ENV_ARG_PARAMETER + ); ACE_TRY_CHECK_EX (OuterBlock); // Declare a CosNaming::Name variable and assign length to it. @@ -223,9 +230,13 @@ 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 (address.in (), - obj_name.in() - ACE_ENV_ARG_PARAMETER); + 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 + ); ACE_TRY_CHECK_EX (OuterBlock); if (this->view_ == 0) |