modernize: Use override instead of virtual
[quassel.git] / src / common / compressor.h
index eedc545..37d951d 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2015 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  *
  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
-#ifndef COMPRESSOR_H
-#define COMPRESSOR_H
+#pragma once
+
+#include <zlib.h>
 
 #include <QObject>
 
 class QTcpSocket;
 
-#ifdef HAVE_ZLIB
-    typedef struct z_stream_s *z_streamp;
-#else
-    typedef struct mz_stream_s *z_streamp;
-#endif
-
 class Compressor : public QObject
 {
     Q_OBJECT
@@ -54,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; }
 
@@ -90,5 +85,3 @@ private:
     z_streamp _inflater;
     z_streamp _deflater;
 };
-
-#endif