remove unused capture of this in one lambda

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2025-03-07 09:23:33 +01:00 committed by backportbot[bot]
parent 6c2206217e
commit 809642791d

View File

@ -36,7 +36,7 @@ AccessManager::AccessManager(QObject *parent)
: QNetworkAccessManager(parent)
{
setCookieJar(new CookieJar);
connect(this, &QNetworkAccessManager::authenticationRequired, this, [this](QNetworkReply *reply, QAuthenticator *authenticator) {
connect(this, &QNetworkAccessManager::authenticationRequired, this, [](QNetworkReply *reply, QAuthenticator *authenticator) {
if (authenticator->user().isEmpty()) {
qCWarning(lcAccessManager) << "Server requested authentication and we didn't provide a user, aborting ...";
authenticator->setUser(QUuid::createUuid().toString());