Remove qCopy from QVarLengthArray
QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I854f64ebd6d83718b1bcb3c70a1697e38243296c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
47d79be39a
commit
5700071ac3
@ -49,6 +49,7 @@
|
||||
#include <new>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <algorithm>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
@ -396,7 +397,7 @@ Q_OUTOFLINE_TEMPLATE typename QVarLengthArray<T, Prealloc>::iterator QVarLengthA
|
||||
int l = int(aend - ptr);
|
||||
int n = l - f;
|
||||
if (QTypeInfo<T>::isComplex) {
|
||||
qCopy(ptr + l, ptr + s, ptr + f);
|
||||
std::copy(ptr + l, ptr + s, ptr + f);
|
||||
T *i = ptr + s;
|
||||
T *b = ptr + s - n;
|
||||
while (i != b) {
|
||||
|
Loading…
Reference in New Issue
Block a user