diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2015-12-03 13:47:27 +0100 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2015-12-03 19:58:51 +0000 |
| commit | b566d670e5d0c0313c4b935ae8ec83f7355a55ed (patch) | |
| tree | 3a659a8c89924ea41035b2a736873574c4b8fb0f /src/sql/drivers/mysql/qsql_mysql.cpp | |
| parent | 5d44d171274aef3d9e93cac8e958494220234151 (diff) | |
QMovie: fix quadratic behavior
Repeatedly calling QList::erase(it) (via QMutableListIterator::remove())
results in quadratic runtime.
Use std::remove_if, which does exactly what the old code tried to do,
except in linear time.
Change-Id: I682e5e05f04953ae1c8788e5d66335241de39fee
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/sql/drivers/mysql/qsql_mysql.cpp')
0 files changed, 0 insertions, 0 deletions
