summaryrefslogtreecommitdiff
path: root/cpp/test/Glacier2/sessionControl/Server.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2019-11-01 11:24:52 -0400
committerJoe George <joe@zeroc.com>2021-02-02 10:55:08 -0500
commit336c68e6e413f45a7269ca6e83850d9e1ef9f751 (patch)
treed3fc90d53718041c9760cde317b8be194a20807c /cpp/test/Glacier2/sessionControl/Server.cpp
parentRemove Ice::Application & Glacier2::Application deprecated classes (diff)
downloadice-336c68e6e413f45a7269ca6e83850d9e1ef9f751.tar.bz2
ice-336c68e6e413f45a7269ca6e83850d9e1ef9f751.tar.xz
ice-336c68e6e413f45a7269ca6e83850d9e1ef9f751.zip
Update Glacier2 tests to use C++11 mapping
Diffstat (limited to 'cpp/test/Glacier2/sessionControl/Server.cpp')
-rw-r--r--cpp/test/Glacier2/sessionControl/Server.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/test/Glacier2/sessionControl/Server.cpp b/cpp/test/Glacier2/sessionControl/Server.cpp
index 0e05292edc4..b64881f095c 100644
--- a/cpp/test/Glacier2/sessionControl/Server.cpp
+++ b/cpp/test/Glacier2/sessionControl/Server.cpp
@@ -11,11 +11,11 @@ using namespace std;
using namespace Ice;
using namespace Test;
-class SessionControlServer : public Test::TestHelper
+class SessionControlServer final : public Test::TestHelper
{
public:
- void run(int, char**);
+ void run(int, char**) override;
};
void
@@ -23,8 +23,8 @@ SessionControlServer::run(int argc, char** argv)
{
Ice::CommunicatorHolder communicator = initialize(argc, argv);
communicator->getProperties()->setProperty("SessionControlAdapter.Endpoints", getTestEndpoint());
- ObjectAdapterPtr adapter = communicator->createObjectAdapter("SessionControlAdapter");
- adapter->add(new SessionManagerI, Ice::stringToIdentity("SessionManager"));
+ auto adapter = communicator->createObjectAdapter("SessionControlAdapter");
+ adapter->add(make_shared<SessionManagerI>(), Ice::stringToIdentity("SessionManager"));
adapter->activate();
communicator->waitForShutdown();
}