diff options
Diffstat (limited to 'project2/ice/iceDaemon.cpp')
-rw-r--r-- | project2/ice/iceDaemon.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/project2/ice/iceDaemon.cpp b/project2/ice/iceDaemon.cpp index b9211f9..2dae17e 100644 --- a/project2/ice/iceDaemon.cpp +++ b/project2/ice/iceDaemon.cpp @@ -73,11 +73,8 @@ IceDaemon::run() const Ice::ObjectAdapterPtr adapter = ic->createObjectAdapterWithEndpoints(adapterName, adapterEndpoint); Logger()->messagebf(LOG_DEBUG, " %s installing servants...", __PRETTY_FUNCTION__); - std::set<IceDaemonAdapterHandlerPtr> interfaces; - InstanceSet<IceDaemonAdapterHandlerLoader>::OnAll([this, adapter, &interfaces](IceDaemonAdapterHandlerLoader * loader) { - IceDaemonAdapterHandlerPtr interfacePtr = loader->create(); - interfacePtr->add(adapter, this, ic); - interfaces.insert(interfacePtr); + InstanceSet<IceDaemonAdapterHandlerLoader>::OnAll([this, adapter](IceDaemonAdapterHandlerLoader * loader) { + loader->create(this)->add(adapter, ic); }); Logger()->messagebf(LOG_DEBUG, " %s starting...", __PRETTY_FUNCTION__); |