Commit d8c18de9 authored by Christian Stenger's avatar Christian Stenger

Tests: Fix compile with Qt5.5/MSVC 2013

Change-Id: I60b7222380486c965701abf6fcbfad460797ab27
Reviewed-by: Oliver Wolff's avatarOliver Wolff <oliver.wolff@qt.io>
Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
parent 2a765db3
......@@ -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}));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment