mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 17:53:08 -07:00
Fix compilation with qt < 4.8.0. Closes #1043.
This commit is contained in:
parent
ade66629b1
commit
4003d7f951
1 changed files with 4 additions and 0 deletions
|
@ -123,7 +123,11 @@ QByteArray HttpResponseGenerator::toByteArray() {
|
||||||
QByteArray dest_buf;
|
QByteArray dest_buf;
|
||||||
if (gCompress(dest_buf)) {
|
if (gCompress(dest_buf)) {
|
||||||
setValue("content-encoding", "gzip");
|
setValue("content-encoding", "gzip");
|
||||||
|
#if QT_VERSION < 0x040800
|
||||||
|
m_message = dest_buf;
|
||||||
|
#else
|
||||||
m_message.swap(dest_buf);
|
m_message.swap(dest_buf);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue