summaryrefslogtreecommitdiff
path: root/cpp/demo/IceGrid/icebox/HelloServiceI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IceGrid/icebox/HelloServiceI.cpp')
-rw-r--r--cpp/demo/IceGrid/icebox/HelloServiceI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/demo/IceGrid/icebox/HelloServiceI.cpp b/cpp/demo/IceGrid/icebox/HelloServiceI.cpp
index 4d04fe418fe..ebd54df2d95 100644
--- a/cpp/demo/IceGrid/icebox/HelloServiceI.cpp
+++ b/cpp/demo/IceGrid/icebox/HelloServiceI.cpp
@@ -35,7 +35,8 @@ HelloServiceI::start(const string& name, const Ice::CommunicatorPtr& communicato
string helloIdentity = communicator->getProperties()->getProperty("Hello.Identity");
- _adapter->add(new HelloI(name), communicator->stringToIdentity(helloIdentity));
+ Demo::HelloPtr hello = new HelloI(name);
+ _adapter->add(hello, communicator->stringToIdentity(helloIdentity));
_adapter->activate();
}