qhttpheaderparser: replace QBA with QBAV
in QSB expression to avoid temp allocation Change-Id: Ib4106c5c9fa0281203dc61bad50418805c6119a9 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
409469ba14
commit
3c56f561e4
@ -75,7 +75,7 @@ bool QHttpHeaderParser::parseHeaders(QByteArrayView header)
|
|||||||
line = line.trimmed();
|
line = line.trimmed();
|
||||||
if (!line.empty()) {
|
if (!line.empty()) {
|
||||||
if (value.size())
|
if (value.size())
|
||||||
value += ' ' + line.toByteArray();
|
value += ' ' + line;
|
||||||
else
|
else
|
||||||
value = line.toByteArray();
|
value = line.toByteArray();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user