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
parent
b8d702dc8e
commit
a144e0bfdc
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue