Remove qSort usages from QtConcurrent
QtAlgorithms is getting deprecated, see http://www.mail-archive.com/development@qt-project.org/msg01603.html Change-Id: I07a8b13f75eb789c45a7c2ef11c0dc15d9fdf8f6 Reviewed-by: Olivier Goffart <ogoffart@woboq.com>bb10
parent
f070b141b6
commit
3256856bbe
|
|
@ -47,7 +47,8 @@
|
|||
#ifndef QT_NO_CONCURRENT
|
||||
|
||||
#include <QtCore/qvector.h>
|
||||
#include <QtCore/qalgorithms.h>
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
|
@ -102,7 +103,7 @@ public:
|
|||
if (dirty) {
|
||||
dirty = false;
|
||||
QVector<T> sorted = values;
|
||||
qSort(sorted);
|
||||
std::sort(sorted.begin(), sorted.end());
|
||||
currentMedian = sorted.at(bufferSize / 2 + 1);
|
||||
}
|
||||
return currentMedian;
|
||||
|
|
|
|||
Loading…
Reference in New Issue