summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/udp/Server.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-12-03 12:18:04 +0100
committerJose <jose@zeroc.com>2015-12-03 12:18:04 +0100
commitfb6e02eb536f24b9187021df64d7856c98b0e95a (patch)
tree7b123e9559dc473b517950d2d0627d329a4349b2 /cpp/test/Ice/udp/Server.cpp
parentC++11 mapping: invocation timeout fixes (diff)
downloadice-fb6e02eb536f24b9187021df64d7856c98b0e95a.tar.bz2
ice-fb6e02eb536f24b9187021df64d7856c98b0e95a.tar.xz
ice-fb6e02eb536f24b9187021df64d7856c98b0e95a.zip
C++11 mapping: update & timeout tests
Diffstat (limited to 'cpp/test/Ice/udp/Server.cpp')
-rw-r--r--cpp/test/Ice/udp/Server.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/test/Ice/udp/Server.cpp b/cpp/test/Ice/udp/Server.cpp
index 654f1e65dc4..3409e10327a 100644
--- a/cpp/test/Ice/udp/Server.cpp
+++ b/cpp/test/Ice/udp/Server.cpp
@@ -26,14 +26,14 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
os << "tcp -p " << (12010 + num);
properties->setProperty("ControlAdapter.Endpoints", os.str());
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("ControlAdapter");
- adapter->add(new TestIntfI, communicator->stringToIdentity("control"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("control"));
adapter->activate();
if(num == 0)
{
properties->setProperty("TestAdapter.Endpoints", "udp -p 12010");
Ice::ObjectAdapterPtr adapter2 = communicator->createObjectAdapter("TestAdapter");
- adapter2->add(new TestIntfI, communicator->stringToIdentity("test"));
+ adapter2->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
adapter2->activate();
}
@@ -52,7 +52,7 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
}
properties->setProperty("McastTestAdapter.Endpoints", endpoint);
Ice::ObjectAdapterPtr mcastAdapter = communicator->createObjectAdapter("McastTestAdapter");
- mcastAdapter->add(new TestIntfI, communicator->stringToIdentity("test"));
+ mcastAdapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
mcastAdapter->activate();
TEST_READY