diff options
author | Christian Stenger <christian.stenger@qt.io> | 2016-07-22 10:12:17 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2016-07-22 12:06:58 +0000 |
commit | d8c18de93c3113743121cfcee4df1269d3127c2f (patch) | |
tree | fe6a49f8397162f3410dd0fb88ad9b5e7cc47d15 /tests/auto/algorithm/tst_algorithm.cpp | |
parent | 2a765db3a50210d9b242518b4a465a8f175e7065 (diff) | |
download | qt-creator-d8c18de93c3113743121cfcee4df1269d3127c2f.tar.gz |
Tests: Fix compile with Qt5.5/MSVC 2013
Change-Id: I60b7222380486c965701abf6fcbfad460797ab27
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'tests/auto/algorithm/tst_algorithm.cpp')
-rw-r--r-- | tests/auto/algorithm/tst_algorithm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/algorithm/tst_algorithm.cpp b/tests/auto/algorithm/tst_algorithm.cpp index e591965dfc..9c2e4402dd 100644 --- a/tests/auto/algorithm/tst_algorithm.cpp +++ b/tests/auto/algorithm/tst_algorithm.cpp @@ -66,7 +66,7 @@ void tst_Algorithm::transform() } { // QSet internally needs special inserter - const QSet<QString> strings({"1", "3", "132"}); + const QSet<QString> strings({QString("1"), QString("3"), QString("132")}); const QSet<int> i1 = Utils::transform(strings, [](const QString &s) { return s.toInt(); }); QCOMPARE(i1, QSet<int>({1, 3, 132})); const QSet<int> i2 = Utils::transform(strings, stringToInt); @@ -98,7 +98,7 @@ void tst_Algorithm::transform() } { // QSet to QList - const QSet<QString> strings({"1", "3", "132"}); + 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); QCOMPARE(i1, QList<int>({1, 3, 132})); |