simple for -> foreach on a hot path
This commit is contained in:
parent
06e26212a2
commit
6f1e72886a
1 changed files with 1 additions and 1 deletions
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue