From c4519ffcfc009d4ffbfa77bfa1b7c9749b9fe7dc Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Wed, 3 Jul 2019 14:52:03 +0200 Subject: Replace the deprecated qSort() -> std::sort() Task-number: QTBUG-76491 Change-Id: I3fd78291e117947f38c77360054b8317561ffa28 Reviewed-by: Volker Hilsheimer --- tests/auto/qsensor/tst_qsensor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/auto/qsensor/tst_qsensor.cpp b/tests/auto/qsensor/tst_qsensor.cpp index 911e9c2c..8e027971 100644 --- a/tests/auto/qsensor/tst_qsensor.cpp +++ b/tests/auto/qsensor/tst_qsensor.cpp @@ -139,7 +139,7 @@ private slots: QList expected; expected << TestSensor::type << TestSensor2::type; QList actual = QSensor::sensorTypes(); - qSort(actual); // The actual list is not in a defined order + std::sort(actual.begin(), actual.end()); // The actual list is not in a defined order QCOMPARE(actual, expected); } @@ -148,7 +148,7 @@ private slots: QList expected; expected << "test sensor 2" << "test sensor 3" << testsensorimpl::id; QList actual = QSensor::sensorsForType(TestSensor::type); - qSort(actual); // The actual list is not in a defined order + std::sort(actual.begin(), actual.end()); // The actual list is not in a defined order QCOMPARE(actual, expected); } @@ -776,7 +776,7 @@ private slots: QList expected; expected << TestSensor::type << TestSensor2::type; QList actual = QSensor::sensorTypes(); - qSort(actual); // The actual list is not in a defined order + std::sort(actual.begin(), actual.end()); // The actual list is not in a defined order QCOMPARE(actual, expected); } -- cgit v1.2.3