diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-10-19 16:05:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-10-20 19:52:12 +0200 |
commit | cdf8d7a1d88865b26cab11f01cc6307a4033f1dd (patch) | |
tree | cd42fe07c8eafa6f0e67de28c50c15d91b53acd6 /xmlsecurity/source | |
parent | 71c804a05eb07fa21482ca298486ed70c63907ad (diff) |
pvs-studio: new does not return nullptr
Change-Id: I3ba9048a4563e7c8e6930ae67d5a076a829d6b81
Reviewed-on: https://gerrit.libreoffice.org/62049
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmlsecurity/source')
-rw-r--r-- | xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx index b8783440ea10..d44d093641c1 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx @@ -369,8 +369,6 @@ css::uno::Sequence< css::uno::Reference< css::security::XCertificateExtension > xExtn = reinterpret_cast<CertificateExtension_XmlSecImpl*>(new SanExtensionImpl()); else xExtn = new CertificateExtension_XmlSecImpl; - if( xExtn == nullptr ) - throw RuntimeException() ; xExtn->setCertExtn( pExtn->Value.pbData, pExtn->Value.cbData, reinterpret_cast<unsigned char*>(pExtn->pszObjId), strlen( pExtn->pszObjId ), pExtn->fCritical ) ; @@ -394,9 +392,6 @@ css::uno::Reference< css::security::XCertificateExtension > SAL_CALL X509Certifi //TODO: Compare the oid if( false ) { xExtn = new CertificateExtension_XmlSecImpl; - if( xExtn == nullptr ) - throw RuntimeException() ; - xExtn->setCertExtn( pExtn->Value.pbData, pExtn->Value.cbData, reinterpret_cast<unsigned char*>(pExtn->pszObjId), strlen( pExtn->pszObjId ), pExtn->fCritical ) ; } } |