diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-22 12:31:14 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2020-10-22 14:05:07 +0200 |
commit | bb16b4687f9caf2d19cabf6ba4bb3220e4d9cf2a (patch) | |
tree | 139cb2e845c01b16a10e77a7a17d01be7cc3a0b1 | |
parent | f8d64735bcffa864ebf8c6dab0d5003bab20457f (diff) |
Fix compiler warnings: don't copy when container returns references
Change-Id: If89dcf833f9dbf09f8b3a558ce441dc1c21499ce
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp b/tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp index 6b6eae15..269f7986 100644 --- a/tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp +++ b/tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp @@ -60,7 +60,7 @@ public slots: void qmlWarnings(const QList<QQmlError> &warnings) { - for (const auto error : warnings) { + for (const auto &error : warnings) { if (error.messageType() == QtWarningMsg && error.description().contains(QStringLiteral("Binding loop detected"))) mBindingLoopDetected = true; } |