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
5e062376
Commit
5e062376
authored
Aug 29, 2021
by
Laurent Montel
😁
Browse files
Fix loop
parent
c3fbc8e3
Pipeline
#77147
passed with stage
in 6 minutes and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmailtransport/servertest.cpp
View file @
5e062376
...
@@ -345,10 +345,11 @@ bool ServerTestPrivate::handleNntpConversation(MailTransport::Socket *socket, in
...
@@ -345,10 +345,11 @@ bool ServerTestPrivate::handleNntpConversation(MailTransport::Socket *socket, in
// .
// .
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
const
QVector
<
QStringView
>
lines
=
QStringView
(
response
).
split
(
QStringLiteral
(
"
\r\n
"
),
Qt
::
SkipEmptyParts
);
const
QVector
<
QStringView
>
lines
=
QStringView
(
response
).
split
(
QStringLiteral
(
"
\r\n
"
),
Qt
::
SkipEmptyParts
);
for
(
const
QStringView
line
:
lines
)
{
#else
#else
const
QVector
<
QStringRef
>
lines
=
response
.
splitRef
(
QStringLiteral
(
"
\r\n
"
),
Qt
::
SkipEmptyParts
);
const
QVector
<
QStringRef
>
lines
=
response
.
splitRef
(
QStringLiteral
(
"
\r\n
"
),
Qt
::
SkipEmptyParts
);
#endif
for
(
const
QStringRef
&
line
:
lines
)
{
for
(
const
QStringRef
&
line
:
lines
)
{
#endif
if
(
line
.
compare
(
QLatin1String
(
"STARTTLS"
),
Qt
::
CaseInsensitive
)
==
0
)
{
if
(
line
.
compare
(
QLatin1String
(
"STARTTLS"
),
Qt
::
CaseInsensitive
)
==
0
)
{
*
shouldStartTLS
=
true
;
*
shouldStartTLS
=
true
;
}
else
if
(
line
.
startsWith
(
QLatin1String
(
"AUTHINFO "
),
Qt
::
CaseInsensitive
))
{
}
else
if
(
line
.
startsWith
(
QLatin1String
(
"AUTHINFO "
),
Qt
::
CaseInsensitive
))
{
...
...
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