--- a/service/DeviceManager.cpp +++ b/service/DeviceManager.cpp @@ -74,7 +74,7 @@ void DeviceManager::executeActionEvent() } Log::notice("Execute a TellStick Action for device %i", data->deviceId); - std::auto_ptr deviceLocker(0); + std::unique_ptr deviceLocker; { // devicelist locked TelldusCore::MutexLocker deviceListLocker(&d->lock); @@ -84,7 +84,7 @@ void DeviceManager::executeActionEvent() return; } // device locked - deviceLocker = std::auto_ptr(new TelldusCore::MutexLocker(it->second)); + deviceLocker = std::make_unique(it->second); device = it->second; } // devicelist unlocked