diff options
Diffstat (limited to 'cpp/demo/Ice/throughput/Server.cpp')
-rw-r--r-- | cpp/demo/Ice/throughput/Server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/demo/Ice/throughput/Server.cpp b/cpp/demo/Ice/throughput/Server.cpp index b4c6fe75146..9f128af8060 100644 --- a/cpp/demo/Ice/throughput/Server.cpp +++ b/cpp/demo/Ice/throughput/Server.cpp @@ -36,7 +36,8 @@ ThroughputServer::run(int argc, char* argv[]) } Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Throughput"); - adapter->add(new ThroughputI, communicator()->stringToIdentity("throughput")); + Demo::ThroughputPtr servant = new ThroughputI; + adapter->add(servant, communicator()->stringToIdentity("throughput")); adapter->activate(); communicator()->waitForShutdown(); return EXIT_SUCCESS; |