summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/ami/Collocated.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/ami/Collocated.cpp')
-rw-r--r--cpp/test/Ice/ami/Collocated.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Ice/ami/Collocated.cpp b/cpp/test/Ice/ami/Collocated.cpp
index d1cc8f97a87..2ca1426f036 100644
--- a/cpp/test/Ice/ami/Collocated.cpp
+++ b/cpp/test/Ice/ami/Collocated.cpp
@@ -26,9 +26,9 @@ run(int, char**, const Ice::CommunicatorPtr& communicator,
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectAdapterPtr adapter2 = communicator->createObjectAdapter("ControllerAdapter");
- TestIntfControllerIPtr testController = new TestIntfControllerI(adapter);
+ TestIntfControllerIPtr testController = ICE_MAKE_SHARED(TestIntfControllerI, adapter);
- adapter->add(new TestIntfI(), communicator->stringToIdentity("test"));
+ adapter->add(ICE_MAKE_SHARED(TestIntfI), communicator->stringToIdentity("test"));
//adapter->activate(); // Collocated test doesn't need to activate the OA
adapter2->add(testController, communicator->stringToIdentity("testController"));