diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-01-28 17:01:47 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-02-01 12:59:15 (GMT) |
commit | 984689f01ce31cade5452633dd43f676bdb75b73 (patch) | |
tree | 5b130457d5e55bfddb16bbeef1a0d2113320d56f /src/corelib | |
parent | 3c0370bd3d0ee83b84ea7c1cc579be51768df183 (diff) | |
download | Qt-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.cpp | 2 |
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; |