OSDN Git Service

remove miniz reference
authorIvailo Monev <xakepa10@laimg.moc>
Wed, 19 Oct 2016 05:58:06 +0000 (05:58 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Wed, 19 Oct 2016 05:58:06 +0000 (05:58 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/text/qzipreader_p.h
src/svg/qsvgtinydocument.cpp

index 5d1dcd7..4609f44 100644 (file)
@@ -59,8 +59,7 @@
 #include <QtCore/qfile.h>
 #include <QtCore/qstring.h>
 
-// to ensure that when building with miniz the FileInfo struct
-// gets proper typedefs for crc32
+// to ensure that the FileInfo struct gets proper typedefs for crc32
 #include <zlib.h>
 
 QT_BEGIN_NAMESPACE
index 3a1c03a..396f0e2 100644 (file)
@@ -154,13 +154,7 @@ QByteArray qt_inflateGZipDataFrom(QIODevice *device)
 
         if (zlibResult == Z_STREAM_END) {
             // Make sure there are no more members to process before exiting
-#ifdef MINIZ_HEADER_INCLUDED
-            // miniz does not support inflateReset()
-            if (!(zlibStream.avail_in && inflateEnd(&zlibStream) == Z_OK
-                && inflateInit2(&zlibStream, MAX_WBITS + 16) == Z_OK))
-#else
             if (!(zlibStream.avail_in && inflateReset(&zlibStream) == Z_OK))
-#endif
                 stillMoreWorkToDo = false;
         }
     }