From bb16b4687f9caf2d19cabf6ba4bb3220e4d9cf2a Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Thu, 22 Oct 2020 12:31:14 +0200 Subject: Fix compiler warnings: don't copy when container returns references Change-Id: If89dcf833f9dbf09f8b3a558ce441dc1c21499ce Reviewed-by: Mitch Curtis --- tests/auto/qquickmaterialstyle/tst_qquickmaterialstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 &warnings) { - for (const auto error : warnings) { + for (const auto &error : warnings) { if (error.messageType() == QtWarningMsg && error.description().contains(QStringLiteral("Binding loop detected"))) mBindingLoopDetected = true; } -- cgit v1.2.3