xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 4fcb64b79f89c7589c7ca2748945603877bf1770 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Tue Oct 19 16:30:12 2021 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Tue Oct 19 19:57:34 2021 +0200 loplugin various (clang-cl) Change-Id: Ib9bd9b96d28c9c4dd0fa36a82a177e119aa04e6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123820 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx index 70617264e8fd..f33306f7cac8 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx @@ -764,7 +764,7 @@ static bool CheckUnitTestStore(PCCERT_CHAIN_CONTEXT const pChainContext, DWORD i NULL, CERT_STORE_OPEN_EXISTING_FLAG | CERT_STORE_READONLY_FLAG, OString(OString::Concat(pVar) + "/test.p7b").getStr()); - assert(hExtra != NULL); + assert(hExtra != nullptr); if (pSimpleChain->cElement < 1) { SAL_WARN("xmlsecurity.xmlsec", "unexpected empty chain"); @@ -777,13 +777,13 @@ static bool CheckUnitTestStore(PCCERT_CHAIN_CONTEXT const pChainContext, DWORD i 0, CERT_FIND_SUBJECT_NAME, &pRoot->pCertInfo->Subject, - NULL); + nullptr); if (pIssuerCert) { // check that it signed itself DWORD flags = CERT_STORE_SIGNATURE_FLAG; - BOOL result = CertVerifySubjectCertificateContext(pRoot, pIssuerCert, &flags); - if (result == TRUE && flags == 0) + bool result = CertVerifySubjectCertificateContext(pRoot, pIssuerCert, &flags); + if (result && flags == 0) { ret = true; }