summaryrefslogtreecommitdiffstats
path: root/examples/opengl/qopenglwidget/mainwindow.cpp
diff options
context:
space:
mode:
authorChristian Ehrlicher <[email protected]>2019-01-01 15:18:57 +0100
committerChristian Ehrlicher <[email protected]>2019-02-02 12:49:19 +0000
commitdf39627fa33392a71ab79aadaa57e5c5e650e79e (patch)
tree83a776716c9b8d9bea2e0a5c3282aa5e0cbcdb6d /examples/opengl/qopenglwidget/mainwindow.cpp
parent7847e6bc02552fa7fc7f518e5cb3336f667b5a6d (diff)
Examples: cleanup foreach usage
Replace deprecated foreach macro with range-based for loop Change-Id: If919ba1d1d4acddfc1c5460ce7aebf8c49e3ac38 Reviewed-by: Paul Wicking <[email protected]>
Diffstat (limited to 'examples/opengl/qopenglwidget/mainwindow.cpp')
-rw-r--r--examples/opengl/qopenglwidget/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/opengl/qopenglwidget/mainwindow.cpp b/examples/opengl/qopenglwidget/mainwindow.cpp
index 4bd123628f0..6fab3df79e7 100644
--- a/examples/opengl/qopenglwidget/mainwindow.cpp
+++ b/examples/opengl/qopenglwidget/mainwindow.cpp
@@ -176,7 +176,7 @@ void MainWindow::timerUsageChanged(bool enabled)
m_timer->start();
} else {
m_timer->stop();
- foreach (QOpenGLWidget *w, m_glWidgets)
+ for (QOpenGLWidget *w : qAsConst(m_glWidgets))
w->update();
}
}