summaryrefslogtreecommitdiffstats
path: root/src/corelib/kernel/qcoreapplication.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-05-23 12:40:12 +0200
committerMarc Mutz <marc.mutz@kdab.com>2019-05-25 09:30:51 +0000
commiteae4668afaaed2723383d8c19858d3e212f3e8ec (patch)
treecb7c4aefd8e348bf874e08c274ef2389da9aefc6 /src/corelib/kernel/qcoreapplication.cpp
parent8fe6f14bf025a4f0b4f8c6c6133d54652e1b3b4e (diff)
Torrent example: replace a QMultiMap with a sorted vector
This came about trying to remove the Java-style iterator. It was used to iterate in reverse order, something QMap can't do, easily, due to lack of rbegin()/rend(). Instead of writing ugly loops, use a vector of pairs, fill it, sort it, then iterate over that one in reverse. Change-Id: I09c8a2732a0699fff4c497778745523e20d348a1 Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/corelib/kernel/qcoreapplication.cpp')
0 files changed, 0 insertions, 0 deletions