From f49ba3e93d62e3120c072ec15df0f08d9e53e4c9 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 10 Mar 2013 20:31:06 +0200 Subject: [PATCH] Avoid using #define --- src/downloadthread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/downloadthread.cpp b/src/downloadthread.cpp index 78c989431..6736fd1bd 100644 --- a/src/downloadthread.cpp +++ b/src/downloadthread.cpp @@ -70,8 +70,8 @@ QByteArray DownloadThread::gUncompress(Bytef *inData, size_t len) { strm.avail_in = len; strm.next_in = inData; - #define windowBits 15 - #define ENABLE_ZLIB_GZIP 32 + const int windowBits = 15; + const int ENABLE_ZLIB_GZIP = 32; int ret = inflateInit2(&strm, windowBits|ENABLE_ZLIB_GZIP ); // gzip decoding if (ret != Z_OK)