summaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/sgengine/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/scenegraph/sgengine/window.cpp')
-rw-r--r--examples/quick/scenegraph/sgengine/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/scenegraph/sgengine/window.cpp b/examples/quick/scenegraph/sgengine/window.cpp
index 2e4a70d2af..759bbf1fcd 100644
--- a/examples/quick/scenegraph/sgengine/window.cpp
+++ b/examples/quick/scenegraph/sgengine/window.cpp
@@ -187,7 +187,7 @@ void Window::update()
void Window::sync()
{
QList<QSharedPointer<Item> > validItems;
- foreach (QSharedPointer<Item> item, m_items) {
+ for (QSharedPointer<Item> item : qAsConst(m_items)) {
if (!item->isDone()) {
validItems.append(item);
item->sync();