Commit e60da3b0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use static here

parent f4dda58e
Pipeline #83042 passed with stage
in 8 minutes and 39 seconds
......@@ -237,7 +237,7 @@ bool ServerTestPrivate::handlePopConversation(MailTransport::Socket *socket, int
if (stage == 0) {
// Regexp taken from POP3 ioslave
const QString responseWithoutCRLF = response.chopped(2);
const QRegularExpression re(QStringLiteral("<[A-Za-z0-9\\.\\-_]+@[A-Za-z0-9\\.\\-_]+>$"), QRegularExpression::CaseInsensitiveOption);
static const QRegularExpression re(QStringLiteral("<[A-Za-z0-9\\.\\-_]+@[A-Za-z0-9\\.\\-_]+>$"), QRegularExpression::CaseInsensitiveOption);
if (responseWithoutCRLF.indexOf(re) != -1) {
authenticationResults[type] << Transport::EnumAuthenticationType::APOP;
}
......
Supports Markdown
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