QAuthenticator: postpone creation of QBA
Create QBA only when it's needed While touching code, use std::move more Change-Id: I5f014822a47d41fa1fca46a85a7921c70d1d9a55 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>bb10
parent
12184ebe7f
commit
efb5424800
|
|
@ -664,7 +664,7 @@ QAuthenticatorPrivate::parseDigestAuthenticationChallenge(QByteArrayView challen
|
|||
const char *start = d;
|
||||
while (d < end && *d != '=')
|
||||
++d;
|
||||
QByteArray key = QByteArray(start, d - start);
|
||||
QByteArrayView key = QByteArrayView(start, d - start);
|
||||
++d;
|
||||
if (d >= end)
|
||||
break;
|
||||
|
|
@ -695,7 +695,7 @@ QAuthenticatorPrivate::parseDigestAuthenticationChallenge(QByteArrayView challen
|
|||
while (d < end && *d != ',')
|
||||
++d;
|
||||
++d;
|
||||
options[key] = value;
|
||||
options[key.toByteArray()] = std::move(value);
|
||||
}
|
||||
|
||||
QByteArray qop = options.value("qop");
|
||||
|
|
|
|||
Loading…
Reference in New Issue