summaryrefslogtreecommitdiff
path: root/cpp/demo/IceBox/hello/HelloServiceI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/IceBox/hello/HelloServiceI.cpp')
-rw-r--r--cpp/demo/IceBox/hello/HelloServiceI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/demo/IceBox/hello/HelloServiceI.cpp b/cpp/demo/IceBox/hello/HelloServiceI.cpp
index de6ee933dde..e9c7437d201 100644
--- a/cpp/demo/IceBox/hello/HelloServiceI.cpp
+++ b/cpp/demo/IceBox/hello/HelloServiceI.cpp
@@ -39,7 +39,8 @@ void
HelloServiceI::start(const string& name, const Ice::CommunicatorPtr& communicator, const Ice::StringSeq& args)
{
_adapter = communicator->createObjectAdapter(name);
- _adapter->add(new HelloI, communicator->stringToIdentity("hello"));
+ Demo::HelloPtr hello = new HelloI;
+ _adapter->add(hello, communicator->stringToIdentity("hello"));
_adapter->activate();
}