Remove qCopy from QCoreApplication

QtAlgorithms is getting deprecated,
see http://www.mail-archive.com/development@qt-project.org/msg01603.html

Change-Id: I3ae7f8331440241d524844eb387d956c64ab62e9
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
bb10
Giuseppe D'Angelo 2013-09-03 22:09:30 +02:00 committed by The Qt Project
parent 5cfb252b07
commit 9ee4a12193
1 changed files with 3 additions and 1 deletions

View File

@ -103,6 +103,8 @@
# include <taskLib.h>
#endif
#include <algorithm>
QT_BEGIN_NAMESPACE
#ifndef QT_NO_QOBJECT
@ -397,7 +399,7 @@ QCoreApplicationPrivate::QCoreApplicationPrivate(int &aargc, char **aargv, uint
argv = (char **)&empty;
}
#ifdef Q_OS_WIN
qCopy(argv, argv + argc, origArgv);
std::copy(argv, argv + argc, origArgv);
#endif
#ifndef QT_NO_QOBJECT