Revert "Use memmove in QListData::append(int) as regions overlap."

We have proven that the regions cannot overlap. The root problem must be
somewhere else.

This reverts commit d96b7b809e.

Change-Id: I3446487f2a1a5bd322379b8adb788c26ff3e08e2
Reviewed-by: Thiago Macieira (Intel) <thiago.macieira@intel.com>
bb10
Oswald Buddenhagen 2011-10-26 14:24:51 +02:00 committed by Qt by Nokia
parent b8d702dc8e
commit a144e0bfdc
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ void **QListData::append(int n)
if (b - n >= 2 * d->alloc / 3) {
// we have enough space. Just not at the end -> move it.
e -= b;
::memmove(d->array, d->array + b, e * sizeof(void *));
::memcpy(d->array, d->array + b, e * sizeof(void *));
d->begin = 0;
} else {
realloc(grow(d->alloc + n));