From 27f5882dc12369274569091d6596587964001fe6 Mon Sep 17 00:00:00 2001 From: Rob Emery Date: Tue, 8 Oct 2024 23:08:56 +0100 Subject: [PATCH] By ref --- core/daemon.cpp | 2 +- kcm/kcm.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/daemon.cpp b/core/daemon.cpp index 28a64fbb6..580fcf458 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -130,7 +130,7 @@ void Daemon::forceOnNetworkChange() { qCDebug(KDECONNECT_CORE) << "Sending onNetworkChange to" << d->m_linkProviders.size() << "LinkProviders"; for (LinkProvider *a : std::as_const(d->m_linkProviders)) { - qCDebug(KDECONNECT_CORE) << "Sending onNetworkChange to: " << a->name(); + qCDebug(KDECONNECT_CORE) << "Sending onNetworkChange to:" << a->name(); a->onNetworkChange(); } } diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 4be917473..660547ef1 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -97,7 +97,7 @@ KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const Q setWhenAvailable( daemon->linkProviders(), - [this](bool error, const QStringList linkProviders) { + [this](bool error, const QStringList &linkProviders) { kcmUi.linkProviders_list->clear(); for (int i = 0; i < linkProviders.size(); ++i) { QStringList linkProvider = linkProviders.at(i).split(QStringLiteral("|"));