modernize: Prefer default member init over ctor init
[quassel.git] / src / core / sslserver.h
index 518db2e..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;
@@ -73,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