diff options
author | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-03-09 12:21:55 +0300 |
---|---|---|
committer | Anton Kudryavtsev <a.kudryavtsev@netris.ru> | 2016-03-13 17:00:44 +0000 |
commit | 447a508d003ce487f2be69af9ab05aeec272e64d (patch) | |
tree | 61f2307262af60cafa071c2f4e0ac0bd872f9006 /src/testlib/testlib.pro | |
parent | a3def2869da8ad9c17d44005c0d1fd70a903f855 (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 'src/testlib/testlib.pro')
0 files changed, 0 insertions, 0 deletions