/***************************************************************************
- * Copyright (C) 2005-2016 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include <QTcpSocket>
#include <QTimer>
-#ifdef HAVE_ZLIB
-# include <zlib.h>
-#else
-# define MINIZ_HEADER_FILE_ONLY
-# include "../../3rdparty/miniz/miniz.c"
-#endif
-
const int maxBufferSize = 64 * 1024 * 1024; // protect us from zip bombs
const int ioBufferSize = 64 * 1024; // chunk size for inflate/deflate; should not be too large as we preallocate that space!
: QObject(parent),
_socket(socket),
_level(level),
- _inflater(0),
- _deflater(0)
+ _inflater(nullptr),
+ _deflater(nullptr)
{
connect(socket, SIGNAL(readyRead()), SLOT(readData()));