aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-12-17 10:22:51 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-12-19 16:07:41 +0100
commit08977003850d7da27a7db8058ff860fc64eb439a (patch)
tree150a7df312bbbe02dcbc6117ba00cc75da2baa8c /src/qml/qml/qqmlengine.cpp
parenteb2e9367a7d257c2fe58473f8d6c876805c71552 (diff)
QQmlEngine: use const QList for C++11 style iteration
Change-Id: Ice4c714e4b234bd03fb060ad185de440592787ea Reviewed-by: Maximilian Goldstein <max.goldstein@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r--src/qml/qml/qqmlengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index cad78f9bb7..88c7a21efc 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -1044,7 +1044,7 @@ QQmlEngine::~QQmlEngine()
// we do this here and not in the private dtor since otherwise a crash can
// occur (if we are the QObject parent of the QObject singleton instance)
// XXX TODO: performance -- store list of singleton types separately?
- QList<QQmlType> singletonTypes = QQmlMetaType::qmlSingletonTypes();
+ const QList<QQmlType> singletonTypes = QQmlMetaType::qmlSingletonTypes();
for (const QQmlType &currType : singletonTypes)
d->destroySingletonInstance(currType);