summaryrefslogtreecommitdiffstats
path: root/qmake/generators/unix/unixmake.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-12-23 13:26:32 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-08-25 04:14:24 +0000
commite83f6aaaa6b1caa59e4dd2c304439e1fb2572d71 (patch)
treed68b489779a124484407537e9b180c0c3dc4845a /qmake/generators/unix/unixmake.cpp
parent8de67524961d2ebae3777dbfc54fe8cea7300cbc (diff)
QMimeProvider: fix quadratic loop
Calling QMutableListIterator::remove() in a loop constitutes quadratic behavior (O(N) function called O(N) times). Fix by splitting the loop, simplifying it by sharing conditions, and using std::remove_if(), which is linear. Removes one more use of mutable Java iterators. Change-Id: I88bde414777b50996e546bc8cb238619ea4fb645 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'qmake/generators/unix/unixmake.cpp')
0 files changed, 0 insertions, 0 deletions