diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-12-16 19:19:38 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-06-04 15:12:09 +0200 |
commit | dea7110b29c5c68a5b09454c968324042ed1b607 (patch) | |
tree | 8a1383ba709db4259d6329765fe28348d2d17bf0 /qmake | |
parent | 2596a8a55ce3c9532701c2cf1f353b93df4bd893 (diff) | |
download | qtbase-dea7110b29c5c68a5b09454c968324042ed1b607.tar.gz |
QGestureManager: clean up cleanupCachedGestures()
- use logarithmic QMap::find() instead of iterate-and-compare-with-key
(linear)
- don't convert a QList to a QSet just to use QSet -=, just iterate
over QSet::remove(): QSet::subtract() doesn't do anything more
fancy, either (saves memory allocations)
- replace Q_FOREACH with ranged-for, avoid copies
Change-Id: I451f034767b079efa9ee19e2c1fe7dc4af2d9bea
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'qmake')
0 files changed, 0 insertions, 0 deletions