Commit 5e062376 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix loop

parent c3fbc8e3
Pipeline #77147 passed with stage
in 6 minutes and 9 seconds
......@@ -345,10 +345,11 @@ bool ServerTestPrivate::handleNntpConversation(MailTransport::Socket *socket, in
// .
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
const QVector<QStringView> lines = QStringView(response).split(QStringLiteral("\r\n"), Qt::SkipEmptyParts);
for (const QStringView line : lines) {
#else
const QVector<QStringRef> lines = response.splitRef(QStringLiteral("\r\n"), Qt::SkipEmptyParts);
#endif
for (const QStringRef &line : lines) {
#endif
if (line.compare(QLatin1String("STARTTLS"), Qt::CaseInsensitive) == 0) {
*shouldStartTLS = true;
} else if (line.startsWith(QLatin1String("AUTHINFO "), Qt::CaseInsensitive)) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment