diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-07-03 21:02:29 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-07-03 21:48:49 +0200 |
commit | 633f77e8e980996b095102ed462ffd228291b7fe (patch) | |
tree | 4434be9e81483fe13a3fad3192895b50d95fabe1 | |
parent | 9a4a2dd5189e1659bce46eacef513b0c5680bb1e (diff) | |
download | qtimageformats-633f77e8e980996b095102ed462ffd228291b7fe.tar.gz |
Eradicate the last Q_FOREACH and mark the module clean
... of Q_FOREACH, Java-style iterators, and QLinkedList use.
Change-Id: Ie751d771f226718ae7b8b19e502cbfb49730af3a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r-- | .qmake.conf | 2 | ||||
-rw-r--r-- | tests/auto/tiff/tst_qtiff.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/.qmake.conf b/.qmake.conf index db2e0b6..f6895bb 100644 --- a/.qmake.conf +++ b/.qmake.conf @@ -1,3 +1,5 @@ load(qt_build_config) +DEFINES += QT_NO_FOREACH QT_NO_JAVA_STYLE_ITERATORS QT_NO_LINKED_LIST + MODULE_VERSION = 5.14.0 diff --git a/tests/auto/tiff/tst_qtiff.cpp b/tests/auto/tiff/tst_qtiff.cpp index b2c5546..a8a0ef2 100644 --- a/tests/auto/tiff/tst_qtiff.cpp +++ b/tests/auto/tiff/tst_qtiff.cpp @@ -499,7 +499,7 @@ void tst_qtiff::supportsOption() allOptions.remove(QImageIOHandler::ImageOption(options.at(i))); } - foreach (QImageIOHandler::ImageOption option, allOptions) + for (QImageIOHandler::ImageOption option : qAsConst(allOptions)) QVERIFY(!writer.supportsOption(option)); } |