diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-08-05 10:04:11 +0300 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-01-06 13:31:26 +0000 |
commit | 8ad200dcb437ae6138dce39c260860db9c7aaa02 (patch) | |
tree | da9cec324a2506dc29258b9ec9aae9b277534168 /src/plugins/platforms/ios/quiview.mm | |
parent | 6a811454141d7c6e4b962514137350348f16085f (diff) |
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>
Diffstat (limited to 'src/plugins/platforms/ios/quiview.mm')
0 files changed, 0 insertions, 0 deletions