Commit 94830ce9 authored by Volker Krause's avatar Volker Krause
Browse files

Port away from deprecated QList::toSet

parent 9b0d1e44
Pipeline #160401 passed with stage
in 5 minutes and 2 seconds
......@@ -233,7 +233,8 @@ void PositionerTest::tst_proxyMapping()
auto ensureUnique = [](const QHash<int, int> mapping) {
auto values = mapping.values();
std::sort(values.begin(), values.end());
auto uniqueValues = values.toSet().values();
auto uniqueValues = values;
uniqueValues.erase(std::unique(uniqueValues.begin(), uniqueValues.end()), uniqueValues.end());
std::sort(uniqueValues.begin(), uniqueValues.end());
QVERIFY(uniqueValues == values);
Supports Markdown
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