Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
libksieve
Commits
202af7d3
Commit
202af7d3
authored
Jan 20, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port toSet method
parent
e20eae4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/ksieveui/vacation/vacationutils.cpp
src/ksieveui/vacation/vacationutils.cpp
+10
-0
No files found.
src/ksieveui/vacation/vacationutils.cpp
View file @
202af7d3
...
...
@@ -376,11 +376,21 @@ QString KSieveUi::VacationUtils::mergeRequireLine(const QString &script, const Q
for
(
int
i
=
insert
;
i
<=
endOld
;
++
i
)
{
lines
.
removeAt
(
insert
);
}
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
requirements
=
rx
.
requirements
().
toSet
();
#else
const
auto
requirementsSet
=
rx
.
requirements
();
requirements
=
QSet
<
QString
>
(
requirementsSet
.
begin
(),
requirementsSet
.
end
());
#endif
}
if
(
parserUpdate
.
parse
()
&&
rxUpdate
.
commandFound
())
{
#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0)
requirements
+=
rxUpdate
.
requirements
().
toSet
();
#else
const
auto
requirementsSet
=
rxUpdate
.
requirements
();
requirements
+=
QSet
<
QString
>
(
requirementsSet
.
begin
(),
requirementsSet
.
end
());
#endif
}
const
int
requirementscount
=
requirements
.
count
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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