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:
Anton Kudryavtsev 2023-08-22 15:34:21 +03:00 committed by Anton Kudryavtsev
parent 409469ba14
commit 3c56f561e4

View File

@ -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();
} }