summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlist.h
diff options
context:
space:
mode:
authorRitt Konstantin <ritt.ks@gmail.com>2011-07-13 18:14:39 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-08-12 18:39:52 +0200
commit52223d80ec8ba6d579c091efe0e40589a5d2bd67 (patch)
treeff987c6d127516d65bbe245f3488649b108308c2 /src/corelib/tools/qlist.h
parentb209fe3b1a51f64541067917e96de99f14ad65f3 (diff)
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/tools/qlist.h')
-rw-r--r--src/corelib/tools/qlist.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h
index e104f6521c..9f7b23f9eb 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);