Commit 70ced775 authored by David Redondo's avatar David Redondo 🏎
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent 53b72e79
......@@ -47,7 +47,7 @@ SensorDaemonInterface::SensorDaemonInterface(QObject *parent)
qDBusRegisterMetaType<SensorDataList>();
qDBusRegisterMetaType<SensorInfoMap>();
d->serviceWatcher = new QDBusServiceWatcher(d->SensorServiceName, QDBusConnection::sessionBus(), QDBusServiceWatcher::WatchForUnregistration, this);
d->serviceWatcher = std::make_unique<QDBusServiceWatcher>(d->SensorServiceName, QDBusConnection::sessionBus(), QDBusServiceWatcher::WatchForUnregistration);
connect(d->serviceWatcher, &QDBusServiceWatcher::serviceUnregistered, this, &SensorDaemonInterface::reconnect);
reconnect();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment