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/language/filetags.cpp | |
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/language/filetags.cpp')
-rw-r--r-- | src/lib/corelib/language/filetags.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/language/filetags.cpp b/src/lib/corelib/language/filetags.cpp index 9a021bc2a..e15be6f6f 100644 --- a/src/lib/corelib/language/filetags.cpp +++ b/src/lib/corelib/language/filetags.cpp @@ -63,7 +63,7 @@ void FileTag::load(PersistentPool &pool) FileTags FileTags::fromStringList(const QStringList &strings) { FileTags result; - foreach (const QString &str, strings) + for (const QString &str : strings) result += FileTag(str.toUtf8()); return result; } @@ -72,7 +72,7 @@ LogWriter operator <<(LogWriter w, const FileTags &tags) { bool firstLoop = true; w.write('('); - foreach (const FileTag &tag, tags) { + for (const FileTag &tag : tags) { if (firstLoop) firstLoop = false; else |