diff options
Diffstat (limited to 'cpp/test/Ice/stringConverter/Server.cpp')
-rw-r--r-- | cpp/test/Ice/stringConverter/Server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/test/Ice/stringConverter/Server.cpp b/cpp/test/Ice/stringConverter/Server.cpp index 9b07edb5f8f..225c54f8f48 100644 --- a/cpp/test/Ice/stringConverter/Server.cpp +++ b/cpp/test/Ice/stringConverter/Server.cpp @@ -52,7 +52,7 @@ run(int, char**, const Ice::CommunicatorPtr& communicator) { communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010:udp -p 12010"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); - adapter->add(new MyObjectI, communicator->stringToIdentity("test")); + adapter->add(ICE_MAKE_SHARED(MyObjectI), communicator->stringToIdentity("test")); adapter->activate(); TEST_READY |