diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-10-19 16:30:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-10-19 19:57:34 +0200 |
commit | 4fcb64b79f89c7589c7ca2748945603877bf1770 (patch) | |
tree | cd702e2b319d3185650f8d74d7a68b15849554a6 /xmlsecurity | |
parent | 395c0c0bbaceadf909e0189af99c6358487c7978 (diff) |
loplugin various (clang-cl)
Change-Id: Ib9bd9b96d28c9c4dd0fa36a82a177e119aa04e6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123820
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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; } |