diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-12-05 09:55:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-12-05 13:31:39 +0100 |
commit | 55e596956e56b175ab17b682e7c8ac7daeb9289a (patch) | |
tree | 3691e2f43d50019b5e0f0e0145714afb13bcc685 /xmlsecurity/source | |
parent | 6a10149c5fef13721e3f83727a828556f8e1ec9a (diff) |
loplugin:external (clang-cl)
...plus loplugin:consttobool and loplugin:fakebool fallout
Change-Id: Ie3d8121815c080b13bea6d9deca1eb138ca56138
Reviewed-on: https://gerrit.libreoffice.org/84515
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity/source')
3 files changed, 12 insertions, 0 deletions
diff --git a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx index a0c47b9c443c..e1e7b8d12760 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx @@ -58,11 +58,15 @@ using ::com::sun::star::security::XCertificate ; static X509Certificate_MSCryptImpl* MswcryCertContextToXCert( PCCERT_CONTEXT cert ) ; +namespace { + struct CertErrorToString{ DWORD error; char const * name; }; +} + CertErrorToString const arErrStrings[] = { { 0x00000000, "CERT_TRUST_NO_ERROR"}, diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx index 91dbbc32b6c5..4aefafa30a32 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsecuritycontext_mscryptimpl.cxx @@ -34,6 +34,8 @@ using ::com::sun::star::lang::XSingleServiceFactory ; using ::com::sun::star::xml::crypto::XSecurityEnvironment ; using ::com::sun::star::xml::crypto::XXMLSecurityContext ; +namespace { + class XMLSecurityContext_MSCryptImpl : public ::cppu::WeakImplHelper< css::xml::crypto::XXMLSecurityContext , css::lang::XServiceInfo > @@ -75,6 +77,8 @@ class XMLSecurityContext_MSCryptImpl : public ::cppu::WeakImplHelper< virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; +} + XMLSecurityContext_MSCryptImpl::XMLSecurityContext_MSCryptImpl() { } diff --git a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx index a0acd81786d7..43f294ba5a10 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx +++ b/xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx @@ -46,6 +46,8 @@ using ::com::sun::star::xml::crypto::XXMLSignatureTemplate ; using ::com::sun::star::xml::crypto::XXMLSecurityContext ; using ::com::sun::star::xml::crypto::XUriBinding ; +namespace { + class XMLSignature_MSCryptImpl : public ::cppu::WeakImplHelper< css::xml::crypto::XXMLSignature , css::lang::XServiceInfo > @@ -74,6 +76,8 @@ class XMLSignature_MSCryptImpl : public ::cppu::WeakImplHelper< virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; } ; +} + XMLSignature_MSCryptImpl::XMLSignature_MSCryptImpl() { } |