diff --git a/core/daemon.cpp b/core/daemon.cpp index ed73f06fd..057b3da62 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -156,7 +156,7 @@ QMap Daemon::deviceNames(bool onlyReachable, bool onlyTrusted) void Daemon::onNewDeviceLink(DeviceLink *link) { - const QString &id = link->deviceId(); + QString id = link->deviceId(); // qCDebug(KDECONNECT_CORE) << "Device discovered" << id << "via" << dl->name();