Fix some Clang static analysis warnings

This commit is contained in:
Cameron Gutman committed 2018-07-18 18:39:33 -07:00
1 parent 76d99cd60e
commit a4ad58d9ec
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -21,7 +21,7 @@ NvPairingManager::NvPairingManager(QString address) :
BIO_free_all(bio);
if (m_Cert == nullptr)
{
throw new std::runtime_error("Unable to load certificate");
throw std::runtime_error("Unable to load certificate");
}
QByteArray pk = IdentityManager::get()->getPrivateKey();
@@ -32,7 +32,7 @@ NvPairingManager::NvPairingManager(QString address) :
BIO_free_all(bio);
if (m_PrivateKey == nullptr)
{
throw new std::runtime_error("Unable to load private key");
throw std::runtime_error("Unable to load private key");
}
}