Remove qSort usages from QtTestlib

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

Change-Id: I383d13f76eceae025daab5242f433f694c0149cd
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Giuseppe D'Angelo 2013-09-02 23:35:27 +02:00 committed by The Qt Project
parent 0b9e39100b
commit f070b141b6

View File

@ -65,6 +65,7 @@
#include <QtTest/private/cycle_p.h>
#include <numeric>
#include <algorithm>
#include <stdarg.h>
#include <stdio.h>
@ -1631,7 +1632,7 @@ QBenchmarkResult qMedian(const QList<QBenchmarkResult> &container)
return container.at(0);
QList<QBenchmarkResult> containerCopy = container;
qSort(containerCopy);
std::sort(containerCopy.begin(), containerCopy.end());
const int middle = count / 2;