summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/echo/Server.cpp
diff options
context:
space:
mode:
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