- virtual void setSslKey(const QByteArray &encoded);
- virtual void setSslCert(const QByteArray &encoded);
-#endif
+ void setSslKey(const QByteArray& encoded) override;
+ void setSslCert(const QByteArray& encoded) override;
+# endif
- CoreIdentity(IdentityId id, QObject *parent = 0);
- CoreIdentity(const Identity &other, QObject *parent = 0);
- CoreIdentity(const CoreIdentity &other, QObject *parent = 0);
+ CoreIdentity(IdentityId id, QObject* parent = nullptr);
+ CoreIdentity(const Identity& other, QObject* parent = nullptr);
+ CoreIdentity(const CoreIdentity& other, QObject* parent = nullptr);
- inline const QSslKey &sslKey() const { return _sslKey; }
- inline void setSslKey(const QSslKey &key) { _sslKey = key; }
- void setSslKey(const QByteArray &encoded);
- inline const QSslCertificate &sslCert() const { return _sslCert; }
- inline void setSslCert(const QSslCertificate &cert) { _sslCert = cert; }
- void setSslCert(const QByteArray &encoded);
+ inline const QSslKey& sslKey() const { return _sslKey; }
+ inline void setSslKey(const QSslKey& key) { _sslKey = key; }
+ void setSslKey(const QByteArray& encoded);
+ inline const QSslCertificate& sslCert() const { return _sslCert; }
+ inline void setSslCert(const QSslCertificate& cert) { _sslCert = cert; }
+ void setSslCert(const QByteArray& encoded);