diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-07-10 20:56:14 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-11 10:42:35 +0200 |
commit | 2363a716884863edaa1e33935742e616d3af1e27 (patch) | |
tree | 7d4c53f40b433ad6c059095b3b6a93e359ca1d52 /tests | |
parent | 7f05d1dd2f89c50d4963308838d092a609eb9899 (diff) |
Eradicate the last Q_FOREACH and mark the module clean
... of Q_FOREACH, Java-style iterators, and QLinkedList use.
Change-Id: Ied30922433d2c3afc599f4e59a4082324b8b2957
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/tst_qtgraphicaleffects.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/tst_qtgraphicaleffects.cpp b/tests/auto/tst_qtgraphicaleffects.cpp index 7f26b01..1d7a633 100644 --- a/tests/auto/tst_qtgraphicaleffects.cpp +++ b/tests/auto/tst_qtgraphicaleffects.cpp @@ -78,9 +78,9 @@ QString tst_qtgraphicaleffects::componentErrors(const QQmlComponent* component) QStringList out; - foreach (QQmlError const& error, component->errors()) { + const auto errors = component->errors(); + for (const QQmlError &error : errors) out << error.toString(); - } return out.join("\n"); } |