Fix some Clang static analysis warnings

This commit is contained in:
Cameron Gutman
2018-07-18 18:39:33 -07:00
parent 76d99cd60e
commit a4ad58d9ec
3 changed files with 7 additions and 7 deletions

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");
}
}