diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2013-10-13 23:06:00 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-26 00:20:53 +0100 |
commit | 4a35b05b852e6ce6102e92d67cf2edb545e1e7a4 (patch) | |
tree | d47294206ead8ff994091264c78850bd1235ddb1 /mkspecs/linux-g++-maemo | |
parent | a480cd8147711808678c659930869803b122d928 (diff) |
QImageReader/Writer: replace dubious use of QSet<QByteArray> with QList
The code populated QSets with some strings and went
on to copy the values to QLists. Since QSet is unordered_set, those
lists were not sorted, so the code did that manually.
Since QSet is a node-based container and not even an ordered one,
the code pays a hefty price just for ensuring uniqueness of values
prior to sorting.
The new code just crams everything into lists, duplicates and all,
then sorts the lists and only then removes duplicates using
std::unique.
Saves 3376B in text size on Linux AMD64 GCC 4.9-trunk release
stripped QtGui.
Change-Id: Ifee931102c01b7505c712cebf4effc37e94165b0
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'mkspecs/linux-g++-maemo')
0 files changed, 0 insertions, 0 deletions