1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-13 05:41:17 +00:00

Fix compilation with qt < 4.8.0. Closes #1043.

This commit is contained in:
sledgehammer999 2013-11-05 23:06:20 +02:00
parent ade66629b1
commit 4003d7f951

View File

@ -123,7 +123,11 @@ QByteArray HttpResponseGenerator::toByteArray() {
QByteArray dest_buf;
if (gCompress(dest_buf)) {
setValue("content-encoding", "gzip");
#if QT_VERSION < 0x040800
m_message = dest_buf;
#else
m_message.swap(dest_buf);
#endif
}
}