diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-01-26 14:38:54 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-01-28 20:25:21 +0000 |
commit | d9229d849f44cf94e4ee19fac390811b474127d2 (patch) | |
tree | d81980dd8a542e45c675e85bf0a47ffb85823f09 /qmake/option.h | |
parent | e31541fa6f5f4df64fd44a9a895491c40b8c64b4 (diff) |
qmake: eradicate Q_FOREACH loops [already const]
(or trivially marked const) ... by replacing them
with C++11 range-for loops.
Change-Id: I1522e220a57ecb1c5ee0d4281233b3c3931a2ff8
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'qmake/option.h')
-rw-r--r-- | qmake/option.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/option.h b/qmake/option.h index 26cfccf5d2..8b9e2f1027 100644 --- a/qmake/option.h +++ b/qmake/option.h @@ -153,7 +153,7 @@ struct Option inline static bool hasFileExtension(const QString &str, const QStringList &extensions) { - foreach (const QString &ext, extensions) + for (const QString &ext : extensions) if (str.endsWith(ext)) return true; return false; |