From 4003d7f951daafb2d5eb0c7ad9feb8fe61fa2ac1 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Tue, 5 Nov 2013 23:06:20 +0200 Subject: [PATCH] Fix compilation with qt < 4.8.0. Closes #1043. --- src/webui/httpresponsegenerator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webui/httpresponsegenerator.cpp b/src/webui/httpresponsegenerator.cpp index 8ddb9ad72..eed78643e 100644 --- a/src/webui/httpresponsegenerator.cpp +++ b/src/webui/httpresponsegenerator.cpp @@ -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 } }