summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-01-28 17:01:47 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-01 12:59:15 (GMT)
commit984689f01ce31cade5452633dd43f676bdb75b73 (patch)
tree5b130457d5e55bfddb16bbeef1a0d2113320d56f /src/corelib
parent3c0370bd3d0ee83b84ea7c1cc579be51768df183 (diff)
downloadQt-984689f01ce31cade5452633dd43f676bdb75b73.zip
Qt-984689f01ce31cade5452633dd43f676bdb75b73.tar.gz
Qt-984689f01ce31cade5452633dd43f676bdb75b73.tar.bz2
remove duplicated calculation of length
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/tools/qlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp
index f1df9bd..c302857 100644
--- a/src/corelib/tools/qlist.cpp
+++ b/src/corelib/tools/qlist.cpp
@@ -208,7 +208,7 @@ void **QListData::append2(const QListData& l)
int n = l.d->end - l.d->begin;
if (n) {
if (e + n > d->alloc)
- realloc(grow(e + l.d->end - l.d->begin));
+ realloc(grow(e + n));
d->end += n;
}
return d->array + e;