summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/allocation/Server.cpp
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2021-02-03 11:16:06 -0500
committerJoe George <joe@zeroc.com>2021-02-03 11:42:30 -0500
commit48f9b28634908c43a23c30e219a9abfb038c1539 (patch)
tree81420c7142bb57902ad96de1d057b5259c29a287 /cpp/test/IceGrid/allocation/Server.cpp
parentIceGrid and IceStorm fixes (diff)
downloadice-48f9b28634908c43a23c30e219a9abfb038c1539.tar.bz2
ice-48f9b28634908c43a23c30e219a9abfb038c1539.tar.xz
ice-48f9b28634908c43a23c30e219a9abfb038c1539.zip
Additional C++11 fixes
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
{