diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2011-07-13 16:14:39 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-08-12 16:39:52 (GMT) |
commit | 52223d80ec8ba6d579c091efe0e40589a5d2bd67 (patch) | |
tree | ff987c6d127516d65bbe245f3488649b108308c2 /src/corelib | |
parent | b209fe3b1a51f64541067917e96de99f14ad65f3 (diff) | |
download | Qt-52223d80ec8ba6d579c091efe0e40589a5d2bd67.zip Qt-52223d80ec8ba6d579c091efe0e40589a5d2bd67.tar.gz Qt-52223d80ec8ba6d579c091efe0e40589a5d2bd67.tar.bz2 |
don't detach until the list is going to be modified
removeAt() does detach()'ing for us
Merge-request: 1285
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qlist.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index e104f65..9f7b23f 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -795,7 +795,6 @@ Q_OUTOFLINE_TEMPLATE int QList<T>::removeAll(const T &_t) template <typename T> Q_OUTOFLINE_TEMPLATE bool QList<T>::removeOne(const T &_t) { - detachShared(); int index = indexOf(_t); if (index != -1) { removeAt(index); |