Commit 70f9e569 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use QStringView

parent 45d8e6c0
Pipeline #75803 passed with stage
in 29 minutes and 25 seconds
......@@ -72,7 +72,8 @@ QString FilterActionEncrypt::argsAsString() const
void FilterActionEncrypt::argsFromString(const QString &argsStr)
{
const int pos = argsStr.indexOf(QLatin1Char(':'));
const auto protoStr = argsStr.leftRef(pos);
const QStringView strView(argsStr);
const auto protoStr = strView.left(pos);
QGpgME::Protocol *proto = {};
if (protoStr == QLatin1String("PGP")) {
......
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