summaryrefslogtreecommitdiff
path: root/cpp/test/IceGrid/simple/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceGrid/simple/Server.cpp')
-rw-r--r--cpp/test/IceGrid/simple/Server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/test/IceGrid/simple/Server.cpp b/cpp/test/IceGrid/simple/Server.cpp
index 57f57c582f9..c252fae2b7e 100644
--- a/cpp/test/IceGrid/simple/Server.cpp
+++ b/cpp/test/IceGrid/simple/Server.cpp
@@ -28,7 +28,7 @@ Server::run(int argc, char* argv[])
Ice::stringSeqToArgs(args, argc, argv);
Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("TestAdapter");
- Ice::ObjectPtr object = new TestI();
+ Ice::ObjectPtr object = ICE_MAKE_SHARED(TestI);
string id = communicator()->getProperties()->getPropertyWithDefault("Identity", "test");
adapter->add(object, Ice::stringToIdentity(id));