diff options
Diffstat (limited to 'cpp/demo/Ice/async/Server.cpp')
-rw-r--r-- | cpp/demo/Ice/async/Server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/demo/Ice/async/Server.cpp b/cpp/demo/Ice/async/Server.cpp index be050037f5d..6b0a5dfad39 100644 --- a/cpp/demo/Ice/async/Server.cpp +++ b/cpp/demo/Ice/async/Server.cpp @@ -45,7 +45,8 @@ AsyncServer::run(int argc, char* argv[]) Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Hello"); _workQueue = new WorkQueue(); - adapter->add(new HelloI(_workQueue), communicator()->stringToIdentity("hello")); + Demo::HelloPtr hello = new HelloI(_workQueue); + adapter->add(hello, communicator()->stringToIdentity("hello")); _workQueue->start(); adapter->activate(); |