This at least compiles
This commit is contained in:
parent
0856afe216
commit
e1ce928d01
2 changed files with 4 additions and 4 deletions
|
@ -149,11 +149,11 @@ QSet<LinkProvider *> Daemon::getLinkProviders() const
|
||||||
|
|
||||||
QStringList Daemon::linkProviders() const
|
QStringList Daemon::linkProviders() const
|
||||||
{
|
{
|
||||||
QStringList return;
|
QStringList returnValue;
|
||||||
for (LinkProvider *a : std::as_const(d->m_linkProviders)) {
|
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
|
QStringList Daemon::devices(bool onlyReachable, bool onlyTrusted) const
|
||||||
{
|
{
|
||||||
|
|
|
@ -96,7 +96,7 @@ KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const Q
|
||||||
kcmUi.bluetoothEnabled_checkbox->setChecked(false);
|
kcmUi.bluetoothEnabled_checkbox->setChecked(false);
|
||||||
|
|
||||||
setWhenAvailable(
|
setWhenAvailable(
|
||||||
daemon->getLinkProviders(),
|
daemon->linkProviders(),
|
||||||
[this](bool error, const QStringList linkProviders) {
|
[this](bool error, const QStringList linkProviders) {
|
||||||
for (int i = 0; i < linkProviders.size(); ++i) {
|
for (int i = 0; i < linkProviders.size(); ++i) {
|
||||||
QString linkProvider = QString(linkProviders.at(i).constData());
|
QString linkProvider = QString(linkProviders.at(i).constData());
|
||||||
|
|
Loading…
Reference in a new issue