By ref
This commit is contained in:
parent
b5bf26c919
commit
27f5882dc1
2 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ void Daemon::forceOnNetworkChange()
|
||||||
{
|
{
|
||||||
qCDebug(KDECONNECT_CORE) << "Sending onNetworkChange to" << d->m_linkProviders.size() << "LinkProviders";
|
qCDebug(KDECONNECT_CORE) << "Sending onNetworkChange to" << d->m_linkProviders.size() << "LinkProviders";
|
||||||
for (LinkProvider *a : std::as_const(d->m_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();
|
a->onNetworkChange();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const Q
|
||||||
|
|
||||||
setWhenAvailable(
|
setWhenAvailable(
|
||||||
daemon->linkProviders(),
|
daemon->linkProviders(),
|
||||||
[this](bool error, const QStringList linkProviders) {
|
[this](bool error, const QStringList &linkProviders) {
|
||||||
kcmUi.linkProviders_list->clear();
|
kcmUi.linkProviders_list->clear();
|
||||||
for (int i = 0; i < linkProviders.size(); ++i) {
|
for (int i = 0; i < linkProviders.size(); ++i) {
|
||||||
QStringList linkProvider = linkProviders.at(i).split(QStringLiteral("|"));
|
QStringList linkProvider = linkProviders.at(i).split(QStringLiteral("|"));
|
||||||
|
|
Loading…
Reference in a new issue