diff options
author | Jose <jose@zeroc.com> | 2015-12-01 22:44:22 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2015-12-01 22:44:22 +0100 |
commit | a1ee728fe4e965911ec934a5fe1a31c8861f87a4 (patch) | |
tree | ff528ef884e7261fef0a9c366214350eac7a0087 /cpp/test/Ice/facets/Server.cpp | |
parent | Fix issues with handling of new builtin type Ice::Value (diff) | |
download | ice-a1ee728fe4e965911ec934a5fe1a31c8861f87a4.tar.bz2 ice-a1ee728fe4e965911ec934a5fe1a31c8861f87a4.tar.xz ice-a1ee728fe4e965911ec934a5fe1a31c8861f87a4.zip |
C++11 mapping facets test
Diffstat (limited to 'cpp/test/Ice/facets/Server.cpp')
-rw-r--r-- | cpp/test/Ice/facets/Server.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/test/Ice/facets/Server.cpp b/cpp/test/Ice/facets/Server.cpp index 0d31a3b95c7..05c08e4a257 100644 --- a/cpp/test/Ice/facets/Server.cpp +++ b/cpp/test/Ice/facets/Server.cpp @@ -20,12 +20,12 @@ run(int, char**, const Ice::CommunicatorPtr& communicator) { communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12010"); Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter"); - Ice::ObjectPtr d = new DI; + Ice::ObjectPtr d = ICE_MAKE_SHARED(DI); adapter->add(d, communicator->stringToIdentity("d")); adapter->addFacet(d, communicator->stringToIdentity("d"), "facetABCD"); - Ice::ObjectPtr f = new FI; + Ice::ObjectPtr f = ICE_MAKE_SHARED(FI); adapter->addFacet(f, communicator->stringToIdentity("d"), "facetEF"); - Ice::ObjectPtr h = new HI(communicator); + Ice::ObjectPtr h = ICE_MAKE_SHARED(HI, communicator); adapter->addFacet(h, communicator->stringToIdentity("d"), "facetGH"); TEST_READY adapter->activate(); |