Tidy up QAuthenticatorPrivate::calculateResponse

call toBase64() with temp value

Change-Id: Idedfd91f60900ec51923803a6bb9ed6631e64d94
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
Anton Kudryavtsev 2023-09-01 18:18:37 +03:00
parent b4f6399a51
commit 470fab51fb

View File

@ -554,8 +554,7 @@ QByteArray QAuthenticatorPrivate::calculateResponse(QByteArrayView requestMethod
break;
case QAuthenticatorPrivate::Basic:
methodString = "Basic";
response = (user + ':'_L1 + password).toLatin1();
response = response.toBase64();
response = (user + ':'_L1 + password).toLatin1().toBase64();
phase = Done;
break;
case QAuthenticatorPrivate::DigestMd5: