This at least compiles

This commit is contained in:
Rob Emery 2024-10-05 11:40:20 +01:00 committed by Carl Schwan
parent 0856afe216
commit e1ce928d01
No known key found for this signature in database
GPG key ID: 02325448204E452A
2 changed files with 4 additions and 4 deletions

View file

@ -149,11 +149,11 @@ QSet<LinkProvider *> 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
{

View file

@ -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());