diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-12-23 13:26:32 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-12-27 14:25:40 +0000 |
commit | 050b68241220a5b52c93e1f4cca3be5e71856357 (patch) | |
tree | ee63b98b23aa09f91231b6d2b7a6ad7b6760da20 /tests/auto/corelib/tools/qstring | |
parent | 4501e25a510c0e3b156816f4559ca16e69264306 (diff) |
QDBusIntegrator: fix quadratic behavior
Calling QVector::erase(it) in a loop consitutes quadratic
behavior (O(N) function called O(N) times).
Fix by using std::remove_if(), which is linear.
Change-Id: I39c11231d604bc2d9506427bc3411b71d71b5569
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/tools/qstring')
0 files changed, 0 insertions, 0 deletions