[effects/slidingpopups] Use range-based for loops
Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D14086
This commit is contained in:
parent
a63c9ab319
commit
049c6e0966
1 changed files with 4 additions and 4 deletions
|
@ -147,7 +147,7 @@ void SlidingPopupsEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& da
|
||||||
data.quads = data.quads.splitAtX(splitPoint);
|
data.quads = data.quads.splitAtX(splitPoint);
|
||||||
WindowQuadList filtered;
|
WindowQuadList filtered;
|
||||||
filtered.reserve(data.quads.count());
|
filtered.reserve(data.quads.count());
|
||||||
foreach (const WindowQuad &quad, data.quads) {
|
for (const WindowQuad &quad : qAsConst(data.quads)) {
|
||||||
if (quad.left() >= splitPoint) {
|
if (quad.left() >= splitPoint) {
|
||||||
filtered << quad;
|
filtered << quad;
|
||||||
}
|
}
|
||||||
|
@ -160,7 +160,7 @@ void SlidingPopupsEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& da
|
||||||
data.quads = data.quads.splitAtY(splitPoint);
|
data.quads = data.quads.splitAtY(splitPoint);
|
||||||
WindowQuadList filtered;
|
WindowQuadList filtered;
|
||||||
filtered.reserve(data.quads.count());
|
filtered.reserve(data.quads.count());
|
||||||
foreach (const WindowQuad &quad, data.quads) {
|
for (const WindowQuad &quad : qAsConst(data.quads)) {
|
||||||
if (quad.top() >= splitPoint) {
|
if (quad.top() >= splitPoint) {
|
||||||
filtered << quad;
|
filtered << quad;
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ void SlidingPopupsEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& da
|
||||||
data.quads = data.quads.splitAtX(splitPoint);
|
data.quads = data.quads.splitAtX(splitPoint);
|
||||||
WindowQuadList filtered;
|
WindowQuadList filtered;
|
||||||
filtered.reserve(data.quads.count());
|
filtered.reserve(data.quads.count());
|
||||||
foreach (const WindowQuad &quad, data.quads) {
|
for (const WindowQuad &quad : qAsConst(data.quads)) {
|
||||||
if (quad.right() <= splitPoint) {
|
if (quad.right() <= splitPoint) {
|
||||||
filtered << quad;
|
filtered << quad;
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,7 @@ void SlidingPopupsEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData& da
|
||||||
data.quads = data.quads.splitAtY(splitPoint);
|
data.quads = data.quads.splitAtY(splitPoint);
|
||||||
WindowQuadList filtered;
|
WindowQuadList filtered;
|
||||||
filtered.reserve(data.quads.count());
|
filtered.reserve(data.quads.count());
|
||||||
foreach (const WindowQuad &quad, data.quads) {
|
for (const WindowQuad &quad : qAsConst(data.quads)) {
|
||||||
if (quad.bottom() <= splitPoint) {
|
if (quad.bottom() <= splitPoint) {
|
||||||
filtered << quad;
|
filtered << quad;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue