Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
94830ce9
Commit
94830ce9
authored
Mar 30, 2022
by
Volker Krause
Browse files
Port away from deprecated QList::toSet
parent
9b0d1e44
Pipeline
#160401
passed with stage
in 5 minutes and 2 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
containments/desktop/plugins/folder/autotests/positionertest.cpp
View file @
94830ce9
...
...
@@ -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
);
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment