diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-07-03 14:52:03 +0200 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2019-08-26 16:18:59 +0200 |
commit | c4519ffcfc009d4ffbfa77bfa1b7c9749b9fe7dc (patch) | |
tree | 9b63f49860f5fe76cce9c08deeae5c79dcf2204c | |
parent | f8f2c4a5d0640090fd50656b1b585c0c3a0936bb (diff) |
Replace the deprecated qSort() -> std::sort()
Task-number: QTBUG-76491
Change-Id: I3fd78291e117947f38c77360054b8317561ffa28
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r-- | tests/auto/qsensor/tst_qsensor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<QByteArray> expected; expected << TestSensor::type << TestSensor2::type; QList<QByteArray> 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<QByteArray> expected; expected << "test sensor 2" << "test sensor 3" << testsensorimpl::id; QList<QByteArray> 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<QByteArray> expected; expected << TestSensor::type << TestSensor2::type; QList<QByteArray> 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); } |