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:
parent
0b9e39100b
commit
f070b141b6
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user