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

Use QStringView

parent 5593933a
Pipeline #60251 passed with stage
in 5 minutes and 57 seconds
...@@ -360,7 +360,7 @@ void LoginJob::handleResponse(const Response &response) ...@@ -360,7 +360,7 @@ void LoginJob::handleResponse(const Response &response)
// find the selected SASL authentication method // find the selected SASL authentication method
for (const QString &capability : qAsConst(d->capabilities)) { for (const QString &capability : qAsConst(d->capabilities)) {
if (capability.startsWith(QLatin1String("AUTH="))) { if (capability.startsWith(QLatin1String("AUTH="))) {
if (capability.midRef(5) == d->authMode) { if (QStringView(capability).mid(5) == d->authMode) {
authModeSupported = true; authModeSupported = true;
break; break;
} }
......
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