diff options
Diffstat (limited to 'cpp/test/Glacier2/override/Server.cpp')
-rw-r--r-- | cpp/test/Glacier2/override/Server.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/test/Glacier2/override/Server.cpp b/cpp/test/Glacier2/override/Server.cpp index 61df40c3658..85c4ba60c82 100644 --- a/cpp/test/Glacier2/override/Server.cpp +++ b/cpp/test/Glacier2/override/Server.cpp @@ -10,25 +10,25 @@ using namespace std; using namespace Ice; using namespace Test; -class CallbackServer : public Test::TestHelper +class CallbackServer final : public Test::TestHelper { public: - void run(int, char**); + void run(int, char**) override; }; void CallbackServer::run(int argc, char** argv) { - Ice::PropertiesPtr properties = createTestProperties(argc, argv); + auto properties = createTestProperties(argc, argv); properties->setProperty("Ice.Warn.Connections", "0"); properties->setProperty("Ice.Warn.Dispatch", "0"); properties->setProperty("Ice.ThreadPool.Server.Serialize", "1"); Ice::CommunicatorHolder communicator = initialize(argc, argv, properties); communicator->getProperties()->setProperty("CallbackAdapter.Endpoints", getTestEndpoint()); - ObjectAdapterPtr adapter = communicator->createObjectAdapter("CallbackAdapter"); - adapter->add(new CallbackI(), Ice::stringToIdentity("c/callback")); + auto adapter = communicator->createObjectAdapter("CallbackAdapter"); + adapter->add(make_shared<CallbackI>(), Ice::stringToIdentity("c/callback")); adapter->activate(); communicator->waitForShutdown(); } |