summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/allocation/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceGrid/allocation/Server.cpp')
-rw-r--r--cpp/test/IceGrid/allocation/Server.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/cpp/test/IceGrid/allocation/Server.cpp b/cpp/test/IceGrid/allocation/Server.cpp
index 5b45a7e7468..b3fb5db6296 100644
--- a/cpp/test/IceGrid/allocation/Server.cpp
+++ b/cpp/test/IceGrid/allocation/Server.cpp
@@ -12,28 +12,28 @@ class Server : public Test::TestHelper
{
public:
- void run(int, char**);
+ void run(int, char**) override;
};
void
Server::run(int argc, char** argv)
{
Ice::CommunicatorHolder communicator = initialize(argc, argv);
- Ice::PropertiesPtr properties = communicator->getProperties();
+ auto properties = communicator->getProperties();
string name = properties->getProperty("Ice.ProgramName");
- Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("Server");
- adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable"));
- adapter->add(new TestI(properties), Ice::stringToIdentity("nonallocatable"));
- adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable1"));
- adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable2"));
- adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable3"));
- adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable4"));
- adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable11"));
- adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable21"));
- adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable31"));
- adapter->add(new TestI(properties), Ice::stringToIdentity("allocatable41"));
+ auto adapter = communicator->createObjectAdapter("Server");
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("allocatable"));
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("nonallocatable"));
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("allocatable1"));
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("allocatable2"));
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("allocatable3"));
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("allocatable4"));
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("allocatable11"));
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("allocatable21"));
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("allocatable31"));
+ adapter->add(make_shared<TestI>(properties), Ice::stringToIdentity("allocatable41"));
try
{