diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2013-09-03 22:13:20 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-09 10:40:37 +0200 |
commit | 7c270390c4dda378de520370406a4698165ca519 (patch) | |
tree | 4dbbbb3e7e70d7c1c4bded1d57dfe8001f5f32ca /src/plugins/platforms/windows/array.h | |
parent | 3f07d12ae2fbaf929b4a7da8876eae37589dae0a (diff) |
Remove qCopy from the Windows platform plugin
QtAlgorithms is getting deprecated,
see http://www.mail-archive.com/development@qt-project.org/msg01603.html
Change-Id: I949da7a111d9206b6a0be8114b2c4803c06728b8
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/array.h')
-rw-r--r-- | src/plugins/platforms/windows/array.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/array.h b/src/plugins/platforms/windows/array.h index 74759231f4..9b7e3a0acb 100644 --- a/src/plugins/platforms/windows/array.h +++ b/src/plugins/platforms/windows/array.h @@ -42,7 +42,8 @@ #ifndef ARRAY_H #define ARRAY_H -#include <QtCore/QtAlgorithms> +#include <QtCore/QtGlobal> +#include <algorithm> QT_BEGIN_NAMESPACE @@ -86,7 +87,7 @@ public: const T *oldData = data; data = new T[capacity]; if (oldData) { - qCopy(oldData, oldData + m_size, data); + std::copy(oldData, oldData + m_size, data); delete [] oldData; } m_capacity = capacity; |