diff --git a/plugins/scenes/opengl/scene_opengl.cpp b/plugins/scenes/opengl/scene_opengl.cpp index 42d852d968..7a628752f8 100644 --- a/plugins/scenes/opengl/scene_opengl.cpp +++ b/plugins/scenes/opengl/scene_opengl.cpp @@ -1132,7 +1132,7 @@ bool OpenGLWindow::beginRenderWindow(int mask, const QRegion ®ion, WindowPain const QRegion filterRegion = region.translated(-x(), -y()); // split all quads in bounding rect with the actual rects in the region - foreach (const WindowQuad &quad, data.quads) { + for (const WindowQuad &quad : qAsConst(data.quads)) { for (const QRect &r : filterRegion) { const QRectF rf(r); const QRectF quadRect(QPointF(quad.left(), quad.top()), QPointF(quad.right(), quad.bottom()));