diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-01-31 10:18:24 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-02-21 17:25:16 +0000 |
commit | b1b58a735a8d6f8f9fb586a877c145326f4b1628 (patch) | |
tree | c4b4c37e3469df8a355d82bf1b1c882d569a5c2a /src/lib/corelib/logging | |
parent | 1c65b79eb3da939de372b10b603729c4621caba8 (diff) |
Remove all usages of Q_FOREACH from the library
This will make it easier to experiment with exchanging Qt containers
for STL ones, for instance.
Change-Id: Ie591fa54b5241ad4841b1ebcfb78b72932cd2b38
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/lib/corelib/logging')
-rw-r--r-- | src/lib/corelib/logging/logger.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/logging/logger.cpp b/src/lib/corelib/logging/logger.cpp index c1d9f619a..b417a4d85 100644 --- a/src/lib/corelib/logging/logger.cpp +++ b/src/lib/corelib/logging/logger.cpp @@ -147,7 +147,7 @@ LogWriter operator<<(LogWriter w, const QSet<QString> &strSet) { bool firstLoop = true; w.write('('); - foreach (const QString &str, strSet) { + for (const QString &str : strSet) { if (firstLoop) firstLoop = false; else @@ -163,7 +163,7 @@ LogWriter operator<<(LogWriter w, const QVariant &variant) QString str = QLatin1String(variant.typeName()) + QLatin1Char('('); if (variant.type() == QVariant::List) { bool firstLoop = true; - foreach (const QVariant &item, variant.toList()) { + for (const QVariant &item : variant.toList()) { str += item.toString(); if (firstLoop) firstLoop = false; |