Browse Source

Fix compilation with qt < 4.8.0. Closes #1043.

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
4003d7f951
  1. 4
      src/webui/httpresponsegenerator.cpp

4
src/webui/httpresponsegenerator.cpp

@ -123,7 +123,11 @@ QByteArray HttpResponseGenerator::toByteArray() { @@ -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
}
}

Loading…
Cancel
Save