modernize: Prefer default member init over ctor init
[quassel.git] / src / core / sslserver.h
index 609ec77..6ca1b91 100644 (file)
@@ -33,7 +33,7 @@ class SslServer : public QTcpServer
     Q_OBJECT
 
 public:
-    SslServer(QObject *parent = 0);
+    SslServer(QObject *parent = nullptr);
 
     bool hasPendingConnections() const override { return !_pendingConnections.isEmpty(); }
     QTcpSocket *nextPendingConnection() override;
@@ -53,11 +53,7 @@ public:
     bool reloadCerts();
 
 protected:
-#if QT_VERSION >= 0x050000
     void incomingConnection(qintptr socketDescriptor) override;
-#else
-    void incomingConnection(int socketDescriptor) override;
-#endif
 
     bool setCertificate(const QString &path, const QString &keyPath);
 
@@ -77,7 +73,7 @@ private:
     QSslCertificate _cert;
     QSslKey _key;
     QList<QSslCertificate> _ca;
-    bool _isCertValid;
+    bool _isCertValid{false};
 
     // Used when reloading certificates later
     QString _sslCertPath; /// Path to the certificate file