mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Construct QString more efficiently
This commit is contained in:
@@ -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