modernize: Replace most remaining old-style connects by PMF ones
[quassel.git] / src / core / oidentdconfiggenerator.h
index 790d85b..ee3e53c 100644 (file)
 #include <QMutex>
 #include <QByteArray>
 
-#ifdef HAVE_UMASK
-#  include <sys/types.h>
-#  include <sys/stat.h>
-#endif /* HAVE_UMASK */
-
 #include "quassel.h"
 #include "coreidentity.h"
 
@@ -59,8 +54,8 @@ class OidentdConfigGenerator : public QObject
 {
     Q_OBJECT
 public:
-    explicit OidentdConfigGenerator(QObject *parent = 0);
-    ~OidentdConfigGenerator();
+    explicit OidentdConfigGenerator(QObject *parent = nullptr);
+    ~OidentdConfigGenerator() override;
 
 public slots:
     bool addSocket(const CoreIdentity *identity, const QHostAddress &localAddress,
@@ -77,7 +72,7 @@ private:
     bool parseConfig(bool readQuasselStanzas = false);
     bool lineByUs(const QByteArray &line);
 
-    bool _initialized;
+    bool _initialized{false};
     bool _strict;
     QDateTime _lastSync;
     QFile *_configFile;