mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 13:18:06 -06:00
Construct QString more efficiently
This commit is contained in:
committed by
sledgehammer999
parent
39fe0025cd
commit
ea3c360901
@@ -54,7 +54,7 @@ QByteArray Http::toByteArray(Response response)
|
||||
|
||||
// Header Fields
|
||||
for (auto i = response.headers.constBegin(); i != response.headers.constEnd(); ++i)
|
||||
buf += QString("%1: %2").arg(i.key(), i.value()).toLatin1().append(CRLF);
|
||||
buf += QString::fromLatin1("%1: %2").arg(i.key(), i.value()).toLatin1().append(CRLF);
|
||||
|
||||
// the first empty line
|
||||
buf += CRLF;
|
||||
|
||||
Reference in New Issue
Block a user