diff options
author | Anton Kudryavtsev <[email protected]> | 2023-09-01 17:42:06 +0300 |
---|---|---|
committer | Anton Kudryavtsev <[email protected]> | 2023-09-04 18:16:11 +0300 |
commit | b4f6399a512a34e1a15cb60f6d7ecb3c002d26a7 (patch) | |
tree | 58d8457472a87ad425c64d0950a16ed468f63998 | |
parent | 50fa7996d08a04201ce9286b632a893aaa3b898b (diff) |
qauthenticator: use QBAV more
Change-Id: Iaa208785f6e1dc8eb5f32ab5e099c8df277bb2f1
Reviewed-by: MÃ¥rten Nordheim <[email protected]>
-rw-r--r-- | src/network/kernel/qauthenticator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index 605db065c54..4c458715e62 100644 --- a/src/network/kernel/qauthenticator.cpp +++ b/src/network/kernel/qauthenticator.cpp @@ -547,10 +547,9 @@ QByteArray QAuthenticatorPrivate::calculateResponse(QByteArrayView requestMethod Q_UNUSED(host); #endif QByteArray response; - const char* methodString = nullptr; + QByteArrayView methodString; switch(method) { case QAuthenticatorPrivate::None: - methodString = ""; phase = Done; break; case QAuthenticatorPrivate::Basic: @@ -645,7 +644,7 @@ QByteArray QAuthenticatorPrivate::calculateResponse(QByteArrayView requestMethod break; } - return QByteArray::fromRawData(methodString, qstrlen(methodString)) + ' ' + response; + return methodString + ' ' + response; } |