Commit 80e80bc9 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QStringView(..).mid

parent dabdc142
Pipeline #63955 passed with stage
in 30 minutes and 16 seconds
......@@ -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);
......
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