summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/location/TestI.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-07-27 19:30:37 -0400
committerBernard Normier <bernard@zeroc.com>2016-07-27 19:30:37 -0400
commit883edab4361e58957796f25d5fc55cfb41f0f6ea (patch)
treefc90adc372b66bf0becf4c0912794c64af250a29 /cpp/test/Ice/location/TestI.cpp
parentICE-7242 - Cross test updates (diff)
downloadice-883edab4361e58957796f25d5fc55cfb41f0f6ea.tar.bz2
ice-883edab4361e58957796f25d5fc55cfb41f0f6ea.tar.xz
ice-883edab4361e58957796f25d5fc55cfb41f0f6ea.zip
Deprecate Communicator::stringToIdentity and identityToString
Diffstat (limited to 'cpp/test/Ice/location/TestI.cpp')
-rw-r--r--cpp/test/Ice/location/TestI.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/test/Ice/location/TestI.cpp b/cpp/test/Ice/location/TestI.cpp
index 833d660a159..80e391b2a8d 100644
--- a/cpp/test/Ice/location/TestI.cpp
+++ b/cpp/test/Ice/location/TestI.cpp
@@ -69,9 +69,9 @@ ServerManagerI::startServer(const Ice::Current&)
adapter2->setLocator(ICE_UNCHECKED_CAST(Ice::LocatorPrx, locator));
Ice::ObjectPtr object = ICE_MAKE_SHARED(TestI, adapter, adapter2, _registry);
- _registry->addObject(adapter->add(object, serverCommunicator->stringToIdentity("test")));
- _registry->addObject(adapter->add(object, serverCommunicator->stringToIdentity("test2")));
- adapter->add(object, serverCommunicator->stringToIdentity("test3"));
+ _registry->addObject(adapter->add(object, Ice::stringToIdentity("test")));
+ _registry->addObject(adapter->add(object, Ice::stringToIdentity("test2")));
+ adapter->add(object, Ice::stringToIdentity("test3"));
adapter->activate();
adapter2->activate();
@@ -93,7 +93,7 @@ TestI::TestI(const Ice::ObjectAdapterPtr& adapter,
const ServerLocatorRegistryPtr& registry) :
_adapter1(adapter), _adapter2(adapter2), _registry(registry)
{
- _registry->addObject(_adapter1->add(ICE_MAKE_SHARED(HelloI), _adapter1->getCommunicator()->stringToIdentity("hello")));
+ _registry->addObject(_adapter1->add(ICE_MAKE_SHARED(HelloI), Ice::stringToIdentity("hello")));
}
void
@@ -106,19 +106,19 @@ HelloPrxPtr
TestI::getHello(const Ice::Current&)
{
return ICE_UNCHECKED_CAST(HelloPrx, _adapter1->createIndirectProxy(
- _adapter1->getCommunicator()->stringToIdentity("hello")));
+ Ice::stringToIdentity("hello")));
}
HelloPrxPtr
TestI::getReplicatedHello(const Ice::Current&)
{
- return ICE_UNCHECKED_CAST(HelloPrx, _adapter1->createProxy(_adapter1->getCommunicator()->stringToIdentity("hello")));
+ return ICE_UNCHECKED_CAST(HelloPrx, _adapter1->createProxy(Ice::stringToIdentity("hello")));
}
void
TestI::migrateHello(const Ice::Current&)
{
- const Ice::Identity id = _adapter1->getCommunicator()->stringToIdentity("hello");
+ const Ice::Identity id = Ice::stringToIdentity("hello");
try
{
_registry->addObject(_adapter2->add(_adapter1->remove(id), id));