diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-06-18 22:35:13 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-06-19 07:16:19 +0200 |
commit | b9b88962fe2f3ec23c06143129e6753ef3fd675a (patch) | |
tree | 46267d31ab5c7c9ece81e86f52c40923826246db /tests/manual/jumplist | |
parent | 5c6762c53d47b3bd3b604afd389669a3670b1ec5 (diff) |
Eradicate remaining Q_FOREACH and mark the module free of them
Q_FOREACH is scheduled for deprecation, or at the very least banned
from use in Qt code.
Change-Id: Iaf9e8d8be7e43231f31a86eec575605366db4e03
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'tests/manual/jumplist')
-rw-r--r-- | tests/manual/jumplist/main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/manual/jumplist/main.cpp b/tests/manual/jumplist/main.cpp index 0597fe5..5447187 100644 --- a/tests/manual/jumplist/main.cpp +++ b/tests/manual/jumplist/main.cpp @@ -51,8 +51,10 @@ static bool associateFileType() regApplications.beginGroup("SupportedTypes"); QMimeDatabase mimeDatabase; - foreach (const QString &t, TestWidget::supportedMimeTypes()) { - foreach (const QString &s, mimeDatabase.mimeTypeForName(t).suffixes()) + const auto types = TestWidget::supportedMimeTypes(); + for (const QString &t : types) { + const auto suffixes = mimeDatabase.mimeTypeForName(t).suffixes(); + for (const QString &s : suffixes) regApplications.setValue('.' + s, QString()); } regApplications.endGroup(); |