diff options
author | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2018-12-07 12:00:48 +0100 |
---|---|---|
committer | Christian Ehrlicher <ch.ehrlicher@gmx.de> | 2019-01-07 13:15:59 +0000 |
commit | 1f2c23a7ca1699b345578aeb52fbd97b612e079a (patch) | |
tree | f9c738188b43e737e51772ba3376f16aa2d76386 /examples/widgets/tools/codecs/previewform.cpp | |
parent | bec817334705d86bc4e99af2e7220bb877f036d3 (diff) |
Cleanup Widgets examples - foreach
Cleanup the Widget examples - replace foreach with range-based for loop
in subdirectory tools, touch and tutorials
Change-Id: I008d23b5993a18a3332fe9f5e5bca68cb0561066
Reviewed-by: Luca Beldi <v.ronin@yahoo.it>
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'examples/widgets/tools/codecs/previewform.cpp')
-rw-r--r-- | examples/widgets/tools/codecs/previewform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/tools/codecs/previewform.cpp b/examples/widgets/tools/codecs/previewform.cpp index d19b9c0833..206b5757cd 100644 --- a/examples/widgets/tools/codecs/previewform.cpp +++ b/examples/widgets/tools/codecs/previewform.cpp @@ -182,7 +182,7 @@ PreviewForm::PreviewForm(QWidget *parent) void PreviewForm::setCodecList(const QList<QTextCodec *> &list) { encodingComboBox->clear(); - foreach (const QTextCodec *codec, list) { + for (const QTextCodec *codec : list) { encodingComboBox->addItem(QLatin1String(codec->name()), QVariant(codec->mibEnum())); } |