Commit c877ee68 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Port Q_FOREACH too

parent 6d731feb
......@@ -169,7 +169,7 @@ void WaylandServer::osdProgress(const QString &icon, int percent, const QString
if (!m_allowedClient) {
return;
}
Q_FOREACH (auto r, m_resources) {
for (auto r : qAsConst(m_resources)) {
if (wl_resource_get_version(r) < ORG_KDE_KSLD_OSDPROGRESS_SINCE_VERSION) {
continue;
}
......@@ -183,7 +183,7 @@ void WaylandServer::osdText(const QString &icon, const QString &additionalText)
if (!m_allowedClient) {
return;
}
Q_FOREACH (auto r, m_resources) {
for (auto r : qAsConst(m_resources)) {
if (wl_resource_get_version(r) < ORG_KDE_KSLD_OSDTEXT_SINCE_VERSION) {
continue;
}
......@@ -197,7 +197,7 @@ void WaylandServer::sendCanSuspend()
if (!m_allowedClient) {
return;
}
Q_FOREACH (auto r, m_resources) {
for (auto r : qAsConst(m_resources)) {
if (wl_resource_get_version(r) < ORG_KDE_KSLD_CANSUSPENDSYSTEM_SINCE_VERSION) {
continue;
}
......@@ -211,7 +211,7 @@ void WaylandServer::sendCanHibernate()
if (!m_allowedClient) {
return;
}
Q_FOREACH (auto r, m_resources) {
for (auto r : qAsConst(m_resources)) {
if (wl_resource_get_version(r) < ORG_KDE_KSLD_CANHIBERNATESYSTEM_SINCE_VERSION) {
continue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment