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
Giuseppe D'Angelo 2013-09-02 23:43:35 +02:00 committed by The Qt Project
parent f070b141b6
commit 3256856bbe
1 changed files with 3 additions and 2 deletions

View File

@ -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;