summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/echo/Server.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2016-07-19 12:16:43 -0400
committerBernard Normier <bernard@zeroc.com>2016-07-19 12:16:43 -0400
commite16efc6d8f2abe2036a601c2695fd65bd9134246 (patch)
tree2af5e70e8b24e3596f14edec12cd249e8f056720 /cpp/test/Ice/echo/Server.cpp
parentICE-7240 - Python Ice/servantLocator cross test (diff)
downloadice-e16efc6d8f2abe2036a601c2695fd65bd9134246.tar.bz2
ice-e16efc6d8f2abe2036a601c2695fd65bd9134246.tar.xz
ice-e16efc6d8f2abe2036a601c2695fd65bd9134246.zip
C++11 support in test/Ice/echo
Diffstat (limited to 'cpp/test/Ice/echo/Server.cpp')
-rw-r--r--cpp/test/Ice/echo/Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Ice/echo/Server.cpp b/cpp/test/Ice/echo/Server.cpp
index 09ccc437c0d..e1d56838839 100644
--- a/cpp/test/Ice/echo/Server.cpp
+++ b/cpp/test/Ice/echo/Server.cpp
@@ -50,9 +50,9 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", getTestEndpoint(communicator, 0));
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- BlobjectIPtr blob = new BlobjectI;
+ BlobjectIPtr blob = ICE_MAKE_SHARED(BlobjectI);
adapter->addDefaultServant(blob, "");
- adapter->add(new EchoI(blob), communicator->stringToIdentity("__echo"));
+ adapter->add(ICE_MAKE_SHARED(EchoI, blob), communicator->stringToIdentity("__echo"));
adapter->activate();
TEST_READY