summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qlist.cpp
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2012-02-21 14:51:22 +0100
committerQt by Nokia <qt-info@nokia.com>2012-03-05 15:15:44 +0100
commit7e4f32993498db0e06346e32458a1ec7d0c7b3ec (patch)
treedd0cadb3ab5e228f384fbc8218f07ab9cef576e1 /src/corelib/tools/qlist.cpp
parent362bde8e8eef41fc6a338ed8fbe6cbf7e9996019 (diff)
Base QList::setSharable on RefCount::setSharable
Change-Id: I2acccdf9ee595a0eee33c9f7ddded9cc121412c1 Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'src/corelib/tools/qlist.cpp')
-rw-r--r--src/corelib/tools/qlist.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp
index dbd026e65a..1b6610a724 100644
--- a/src/corelib/tools/qlist.cpp
+++ b/src/corelib/tools/qlist.cpp
@@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE
the number of elements in the list.
*/
-const QListData::Data QListData::shared_null = { Q_REFCOUNT_INITIALIZE_STATIC, 0, 0, 0, true, { 0 } };
+const QListData::Data QListData::shared_null = { Q_REFCOUNT_INITIALIZE_STATIC, 0, 0, 0, { 0 } };
static int grow(int size)
{
@@ -88,7 +88,6 @@ QListData::Data *QListData::detach_grow(int *idx, int num)
Q_CHECK_PTR(t);
t->ref.initializeOwned();
- t->sharable = true;
t->alloc = alloc;
// The space reservation algorithm's optimization is biased towards appending:
// Something which looks like an append will put the data at the beginning,
@@ -130,7 +129,6 @@ QListData::Data *QListData::detach(int alloc)
Q_CHECK_PTR(t);
t->ref.initializeOwned();
- t->sharable = true;
t->alloc = alloc;
if (!alloc) {
t->begin = 0;