diff options
author | Anton Kudryavtsev <[email protected]> | 2023-08-25 18:27:13 +0300 |
---|---|---|
committer | Anton Kudryavtsev <[email protected]> | 2023-08-25 22:29:51 +0300 |
commit | 12184ebe7f50440ec0f73d5786782ba1c067b437 (patch) | |
tree | d6c281ff6086f8e82b52cb8a1e27cb0b549d9798 | |
parent | 141f0ca338bc65e3817b6effca84e66206fe56f9 (diff) |
QAuthenticator: use QSB more
avoid temp allocations
Change-Id: I8ca4d4b748f79d1c7a4455a5105998c58c91c7a4
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
-rw-r--r-- | src/network/kernel/qauthenticator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index 91660cf2f7c..432dfa7877c 100644 --- a/src/network/kernel/qauthenticator.cpp +++ b/src/network/kernel/qauthenticator.cpp @@ -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; |