From f070b141b6b9fae28abc1169a09a4b5e9c7adc74 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Mon, 2 Sep 2013 23:35:27 +0200 Subject: 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 --- src/testlib/qtestcase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp index 5d5a976201..9d9fcced76 100644 --- a/src/testlib/qtestcase.cpp +++ b/src/testlib/qtestcase.cpp @@ -65,6 +65,7 @@ #include #include +#include #include #include @@ -1631,7 +1632,7 @@ QBenchmarkResult qMedian(const QList &container) return container.at(0); QList containerCopy = container; - qSort(containerCopy); + std::sort(containerCopy.begin(), containerCopy.end()); const int middle = count / 2; -- cgit v1.2.3