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
KMailTransport
Commits
c3fbc8e3
Commit
c3fbc8e3
authored
Aug 29, 2021
by
Laurent Montel
😁
Browse files
Port to QStringView::split
parent
ff70e5ab
Pipeline
#77145
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmailtransport/servertest.cpp
View file @
c3fbc8e3
...
...
@@ -343,7 +343,11 @@ bool ServerTestPrivate::handleNntpConversation(MailTransport::Socket *socket, in
// SASL DIGEST-MD5 CRAM-MD5 NTLM PLAIN LOGIN
// STARTTLS
// .
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
const
QVector
<
QStringView
>
lines
=
QStringView
(
response
).
split
(
QStringLiteral
(
"
\r\n
"
),
Qt
::
SkipEmptyParts
);
#else
const
QVector
<
QStringRef
>
lines
=
response
.
splitRef
(
QStringLiteral
(
"
\r\n
"
),
Qt
::
SkipEmptyParts
);
#endif
for
(
const
QStringRef
&
line
:
lines
)
{
if
(
line
.
compare
(
QLatin1String
(
"STARTTLS"
),
Qt
::
CaseInsensitive
)
==
0
)
{
*
shouldStartTLS
=
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