Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KScreenLocker
Commits
c877ee68
Commit
c877ee68
authored
May 13, 2021
by
Laurent Montel
😁
Browse files
Port Q_FOREACH too
parent
6d731feb
Changes
1
Hide whitespace changes
Inline
Side-by-side
waylandserver.cpp
View file @
c877ee68
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment