Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM MailCommon
Commits
80e80bc9
Commit
80e80bc9
authored
Jun 03, 2021
by
Laurent Montel
😁
Browse files
Use QStringView(..).mid
parent
dabdc142
Pipeline
#63955
passed with stage
in 30 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/filter/filteractions/filteractionencrypt.cpp
View file @
80e80bc9
...
...
@@ -83,8 +83,11 @@ void FilterActionEncrypt::argsFromString(const QString &argsStr)
qCWarning
(
MAILCOMMON_LOG
)
<<
"Unknown protocol specified:"
<<
protoStr
;
return
;
}
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 2)
mReencrypt
=
static_cast
<
bool
>
(
QStringView
(
argsStr
).
mid
(
pos
+
1
,
1
).
toInt
());
#else
mReencrypt
=
static_cast
<
bool
>
(
argsStr
.
midRef
(
pos
+
1
,
1
).
toInt
());
#endif
const
auto
fp
=
argsStr
.
mid
(
pos
+
3
);
auto
listJob
=
proto
->
keyListJob
(
false
,
true
,
true
);
...
...
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