summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/kernel/qkeyevent/tst_qkeyevent.cpp
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-03-09 12:21:55 +0300
committerAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-03-13 17:00:44 +0000
commit447a508d003ce487f2be69af9ab05aeec272e64d (patch)
tree61f2307262af60cafa071c2f4e0ac0bd872f9006 /tests/auto/gui/kernel/qkeyevent/tst_qkeyevent.cpp
parenta3def2869da8ad9c17d44005c0d1fd70a903f855 (diff)
QHostInfo: optimize container usage
Replace Java-style iterators with STL-style iterators. Java-style iterators have overhead. Use std::stable_partition with erase() instead of using remove() in a loop, with quadratic complexity. Introduce local template homebrew any_of (analog of std::any_of from C++11) to simplify current code. Also it's needed for following changes in this class. Change-Id: I2b11889ccc7630597c72aa20cdb266ae6ca2471a Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'tests/auto/gui/kernel/qkeyevent/tst_qkeyevent.cpp')
0 files changed, 0 insertions, 0 deletions