qt5base-lts/tests/auto/gui/image/qimagewriter
Marc Mutz 8ad200dcb4 tst_QImageWriter: clean up
- port Q_FOREACH to C++11 range-for
- port uses of inefficient QLists to QVector or C arrays
- port uses of dynamic containers with static content, to constexpr
  C arrays
- fix algorithmic mistakes:
  * use adjacent_find with greater<> to emulate C++11 std::is_sorted
    instead of sorting the range and comparing it with the original
    (and not even using stable_sort to do this).
  * use std::unique == end() to detect absence of duplicates instead
    of poplulating a QSet and comparing its size with that of the
    original range.
  * use a simple QCOMPARE instead of populating a QSet with statically-
    known content, removing known options to be able to check that the
    remaining options are unknown

Fixes errors pointed out by my tree's static checks.

Change-Id: I935dbc21d56b55889d96aaf6ec179624c6ce9047
Reviewed-by: David Faure <david.faure@kdab.com>
2017-01-06 13:31:26 +00:00
..
images ICO image format: fix regression in writing when size >= 256 2016-05-13 04:37:15 +00:00
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qimagewriter.pro Remove the traces of the discontinued android-no-sdk platform 2016-03-30 10:12:34 +00:00
qimagewriter.qrc Android: Fix qimagewriter test. 2015-01-08 10:02:23 +01:00
tst_qimagewriter.cpp tst_QImageWriter: clean up 2017-01-06 13:31:26 +00:00