summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/adapterDeactivation/Collocated.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/adapterDeactivation/Collocated.cpp')
-rw-r--r--cpp/test/Ice/adapterDeactivation/Collocated.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Ice/adapterDeactivation/Collocated.cpp b/cpp/test/Ice/adapterDeactivation/Collocated.cpp
index ef093c73098..67f6a550f39 100644
--- a/cpp/test/Ice/adapterDeactivation/Collocated.cpp
+++ b/cpp/test/Ice/adapterDeactivation/Collocated.cpp
@@ -23,10 +23,10 @@ run(int, char**, const Ice::CommunicatorPtr& communicator)
{
communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010");
Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
- ServantLocatorPtr locator = new ServantLocatorI;
+ ServantLocatorPtr locator = ICE_MAKE_SHARED(ServantLocatorI);
adapter->addServantLocator(locator, "");
- TestIntfPrx allTests(const CommunicatorPtr&);
+ TestIntfPrxPtr allTests(const CommunicatorPtr&);
allTests(communicator);
adapter->waitForDeactivate();