From 74e9cdbf12a811885b01e99f3111f9a22e32132f Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Wed, 26 Jul 2023 21:40:52 +0200 Subject: [PATCH] Do not get deviceId by reference --- core/daemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();