diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2019-08-23 09:51:39 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2019-08-30 22:38:37 +0200 |
commit | e45e6efa723297e8aaa1132251ef55b65201d174 (patch) | |
tree | 0adf0a2365a68a3790fd455568f1b9766315fae6 /bin | |
parent | 65dfc485adc1c5de4840f217c47c6ad79d26ae82 (diff) |
QTouchDevice: don't play ping-pong with q*PostRoutine()
Removing a qPostRoutine is an O(N) operation. It's perfectly ok to
keep calling it even if the list has become empty before.
Just qAddPostRoutine in the deviceList's ctor and never remove it
again.
Add a missing qAsConst as a drive-by.
Change-Id: I25f824b74012146214568cfccb22c5dba3ca38ef
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions