X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fcompressor.h;h=37d951debe36d613b681b43d33623d0a23915363;hb=2c8434f74c68194d56f2084f637419123e61d18b;hp=85817f1f3f6a3ef794e425669e82de0d1a0d2485;hpb=bdb3b8a3086fcd871d2a099fa4a40376f4040e6e;p=quassel.git diff --git a/src/common/compressor.h b/src/common/compressor.h index 85817f1f..37d951de 100644 --- a/src/common/compressor.h +++ b/src/common/compressor.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 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 * @@ -18,15 +18,14 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef COMPRESSOR_H -#define COMPRESSOR_H +#pragma once + +#include #include class QTcpSocket; -typedef struct mz_stream_s *z_streamp; - class Compressor : public QObject { Q_OBJECT @@ -50,8 +49,8 @@ public: Flush }; - Compressor(QTcpSocket *socket, CompressionLevel level, QObject *parent = 0); - ~Compressor(); + Compressor(QTcpSocket *socket, CompressionLevel level, QObject *parent = nullptr); + ~Compressor() override; CompressionLevel compressionLevel() const { return _level; } @@ -86,5 +85,3 @@ private: z_streamp _inflater; z_streamp _deflater; }; - -#endif