summaryrefslogtreecommitdiffstats
path: root/src/makeqpf/mainwindow.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-12-22 10:04:27 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-12-22 11:29:29 +0000
commit8c3946e5f957f5dc5cd1f2e549edd8999f63eeb6 (patch)
treee328171b5b88015ab60c04db8f6e9bcb90d148f9 /src/makeqpf/mainwindow.cpp
parent3269e2aa561db8fa14f09d4545b5feefa3602ad5 (diff)
foreach cleanup in the the smaller tools
Replace foreach by C++ 11 range based for in kmap2qmap, makeqpf, pixeltool, qdbus, qtattributionsscanner, qtdiag, qtplugininfo, winrtrunner and the simpletextviewer example. Change-Id: I079da84c47a1584526f4fe188377c0262419a44d Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/makeqpf/mainwindow.cpp')
-rw-r--r--src/makeqpf/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makeqpf/mainwindow.cpp b/src/makeqpf/mainwindow.cpp
index a6aebde5d..ce745e825 100644
--- a/src/makeqpf/mainwindow.cpp
+++ b/src/makeqpf/mainwindow.cpp
@@ -220,7 +220,7 @@ void MainWindow::on_sampleFile_editingFinished()
QList<QChar> sortedCoverage = QList<QChar>::fromSet(coverage);
qSort(sortedCoverage);
// play simple :)
- foreach (QChar ch, sortedCoverage) {
+ for (QChar ch : qAsConst(sortedCoverage)) {
QPF::CharacterRange r;
r.start = ch.unicode();
r.end = r.start + 1;