QAuthenticator: use QSB more

avoid temp allocations

Change-Id: I8ca4d4b748f79d1c7a4455a5105998c58c91c7a4
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
Anton Kudryavtsev 2023-08-25 18:27:13 +03:00
parent 141f0ca338
commit 12184ebe7f

View File

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