Commit abf848dd authored by David Redondo's avatar David Redondo 🏎
Browse files

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

parent a1492cb5
......@@ -54,7 +54,7 @@ SensorDaemonInterface::SensorDaemonInterface(QObject *parent)
void KSysGuard::SensorDaemonInterface::reconnect()
{
d->dbusInterface.reset(new org::kde::KSysGuardDaemon(Private::SensorServiceName, Private::SensorPath, QDBusConnection::sessionBus()));
d->dbusInterface = std::make_unique<org::kde::KSysGuardDaemon>(Private::SensorServiceName, Private::SensorPath, QDBusConnection::sessionBus());
connect(d->dbusInterface.get(), &org::kde::KSysGuardDaemon::sensorMetaDataChanged, this, &SensorDaemonInterface::onMetaDataChanged);
connect(d->dbusInterface.get(), &org::kde::KSysGuardDaemon::newSensorData, this, &SensorDaemonInterface::onValueChanged);
connect(d->dbusInterface.get(), &org::kde::KSysGuardDaemon::sensorAdded, this, &SensorDaemonInterface::sensorAdded);
......
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