Fix compiler warnings from mixing signed/unsigned ints
Change-Id: I146203dd8b6dddabc0a7cf4b3db8a3fd379fc0c6 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
This commit is contained in:
parent
fe009bd514
commit
2885a99c32
@ -1805,7 +1805,7 @@ void tst_QtConcurrentMap::stlContainers()
|
||||
list.push_back(2);
|
||||
|
||||
std::list<int> list2 = QtConcurrent::blockingMapped(list, mapper);
|
||||
QCOMPARE(list2.size(), 2);
|
||||
QCOMPARE(list2.size(), 2u);
|
||||
|
||||
QtConcurrent::mapped(list, mapper).waitForFinished();
|
||||
|
||||
@ -1820,7 +1820,7 @@ void tst_QtConcurrentMap::stlContainersLambda()
|
||||
|
||||
std::vector<int> vector2 =
|
||||
QtConcurrent::blockingMapped(vector, [](const int &i) { return mapper(i); });
|
||||
QCOMPARE(vector2.size(), 2);
|
||||
QCOMPARE(vector2.size(), 2u);
|
||||
|
||||
std::list<int> list;
|
||||
list.push_back(1);
|
||||
@ -1828,7 +1828,7 @@ void tst_QtConcurrentMap::stlContainersLambda()
|
||||
|
||||
std::list<int> list2 =
|
||||
QtConcurrent::blockingMapped(list, [](const int &i) { return mapper(i); });
|
||||
QCOMPARE(list2.size(), 2);
|
||||
QCOMPARE(list2.size(), 2u);
|
||||
|
||||
QtConcurrent::mapped(list, [](const int &i) { return mapper(i); }).waitForFinished();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user