diff --git a/core/daemon.cpp b/core/daemon.cpp index 32ba722c4..dd63c2cd9 100644 --- a/core/daemon.cpp +++ b/core/daemon.cpp @@ -149,11 +149,11 @@ QSet Daemon::getLinkProviders() const QStringList Daemon::linkProviders() const { - QStringList return; + QStringList returnValue; for (LinkProvider *a : std::as_const(d->m_linkProviders)) { - return.append(a->name()) + returnValue.append(a->name()); } - return ret; + return returnValue; } QStringList Daemon::devices(bool onlyReachable, bool onlyTrusted) const { diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 9e7a7bdb0..86db0fd4b 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -96,7 +96,7 @@ KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const Q kcmUi.bluetoothEnabled_checkbox->setChecked(false); setWhenAvailable( - daemon->getLinkProviders(), + daemon->linkProviders(), [this](bool error, const QStringList linkProviders) { for (int i = 0; i < linkProviders.size(); ++i) { QString linkProvider = QString(linkProviders.at(i).constData());