clazy: Convert many old-style connects into function pointer based
[quassel.git] / src / client / clientidentity.cpp
index 16e1c42..8e56168 100644 (file)
 
 CertIdentity::CertIdentity(IdentityId id, QObject *parent)
     : Identity(id, parent)
-#ifdef HAVE_SSL
-    ,  _certManager(nullptr),
-    _isDirty(false)
-#endif
 {
 }
 
 
 CertIdentity::CertIdentity(const Identity &other, QObject *parent)
     : Identity(other, parent)
-#ifdef HAVE_SSL
-    , _certManager(nullptr),
-    _isDirty(false)
-#endif
 {
 }
 
@@ -46,10 +38,9 @@ CertIdentity::CertIdentity(const Identity &other, QObject *parent)
 CertIdentity::CertIdentity(const CertIdentity &other, QObject *parent)
     : Identity(other, parent)
 #ifdef HAVE_SSL
-    , _certManager(nullptr),
-    _isDirty(other._isDirty),
-    _sslKey(other._sslKey),
-    _sslCert(other._sslCert)
+    , _isDirty(other._isDirty)
+    , _sslKey(other._sslKey)
+    , _sslCert(other._sslCert)
 #endif
 {
 }
@@ -64,8 +55,8 @@ void CertIdentity::enableEditSsl(bool enable)
     _certManager = new ClientCertManager(id(), this);
     if (isValid()) { // this means we are not a newly created Identity but have a proper Id
         Client::signalProxy()->synchronize(_certManager);
-        connect(_certManager, SIGNAL(updated()), this, SLOT(markClean()));
-        connect(_certManager, SIGNAL(initDone()), this, SLOT(markClean()));
+        connect(_certManager, &SyncableObject::updated, this, &CertIdentity::markClean);
+        connect(_certManager, &SyncableObject::initDone, this, &CertIdentity::markClean);
     }
 }