Replace assert() with Q_ASSERT()

This commit is contained in:
Cameron Gutman committed 2018-05-05 16:11:48 -07:00
1 parent 5001733767
commit 6adb3f0f45
1 file changed
+2 -2
+2 -2
View File
@@ -118,8 +118,8 @@ IdentityManager::IdentityManager()
BIO_free(biocert); BIO_free(biocert);
// Ensure we can actually consume the keys we just wrote // Ensure we can actually consume the keys we just wrote
assert(!QSslCertificate(m_CachedPemCert).isNull()); Q_ASSERT(!QSslCertificate(m_CachedPemCert).isNull());
assert(!QSslKey(m_CachedPrivateKey, QSsl::Rsa).isNull()); Q_ASSERT(!QSslKey(m_CachedPrivateKey, QSsl::Rsa).isNull());
qDebug() << "Wrote new identity credentials to disk"; qDebug() << "Wrote new identity credentials to disk";
} }