diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-08-12 18:06:49 +0300 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-08-15 07:22:59 +0000 |
commit | 98a0c816f77f657f06145d7623eed1ff30c0482a (patch) | |
tree | 2d121644a541d17678a52ba23e2b6d6ed6f3c839 /tests/auto/algorithm | |
parent | c8e40f5b569464aa41ff405b885157be83a28a8e (diff) |
Tests: Do not use deprecated Qt algorithms
Change-Id: I3ca177b69df3540729a98d8d3b6287df36a47ea0
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'tests/auto/algorithm')
-rw-r--r-- | tests/auto/algorithm/tst_algorithm.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/algorithm/tst_algorithm.cpp b/tests/auto/algorithm/tst_algorithm.cpp index ca45200c36..614cf3fa12 100644 --- a/tests/auto/algorithm/tst_algorithm.cpp +++ b/tests/auto/algorithm/tst_algorithm.cpp @@ -101,13 +101,13 @@ void tst_Algorithm::transform() // QSet to QList const QSet<QString> strings({QString("1"), QString("3"), QString("132")}); QList<int> i1 = Utils::transform<QList>(strings, [](const QString &s) { return s.toInt(); }); - qSort(i1); + Utils::sort(i1); QCOMPARE(i1, QList<int>({1, 3, 132})); QList<int> i2 = Utils::transform<QList>(strings, stringToInt); - qSort(i2); + Utils::sort(i2); QCOMPARE(i2, QList<int>({1, 3, 132})); QList<int> i3 = Utils::transform<QList>(strings, &QString::size); - qSort(i3); + Utils::sort(i3); QCOMPARE(i3, QList<int>({1, 1, 3})); } } |