diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-13 10:27:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-29 08:18:35 +0200 |
commit | 71112060e0930fc58087c3762e836b1e12b60f75 (patch) | |
tree | 3bd54aa5b5864d9cd31d0aa3ec4080b46cf66a2d /xmlsecurity/source/component/documentdigitalsignatures.cxx | |
parent | d6da9e495d7ca32de6cda1a94cb4c8cd26b240cc (diff) |
loplugin:oncevar various
Change-Id: I8b82d46d4688b1a59d6fe1b05da7d5c8dfc13ca6
Reviewed-on: https://gerrit.libreoffice.org/38766
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source/component/documentdigitalsignatures.cxx')
-rw-r--r-- | xmlsecurity/source/component/documentdigitalsignatures.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx index 518b4acb1c93..6cec7f5a9c8e 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.cxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx @@ -400,8 +400,7 @@ void DocumentDigitalSignatures::manageTrustedSources( ) Reference< css::xml::crypto::XSecurityEnvironment > xSecEnv; - DocumentSignatureMode eMode{}; - DocumentSignatureManager aSignatureManager(mxCtx, eMode); + DocumentSignatureManager aSignatureManager(mxCtx, {}); if (aSignatureManager.init()) xSecEnv = aSignatureManager.getSecurityEnvironment(); @@ -412,8 +411,7 @@ void DocumentDigitalSignatures::manageTrustedSources( ) void DocumentDigitalSignatures::showCertificate( const Reference< css::security::XCertificate >& Certificate ) { - DocumentSignatureMode eMode{}; - DocumentSignatureManager aSignatureManager(mxCtx, eMode); + DocumentSignatureManager aSignatureManager(mxCtx, {}); bool bInit = aSignatureManager.init(); @@ -454,8 +452,7 @@ Reference< css::security::XCertificate > DocumentDigitalSignatures::chooseCertif { std::vector< Reference< css::xml::crypto::XXMLSecurityContext > > xSecContexts; - DocumentSignatureMode eMode{}; - DocumentSignatureManager aSignatureManager(mxCtx, eMode); + DocumentSignatureManager aSignatureManager(mxCtx, {}); if (aSignatureManager.init()) { xSecContexts.push_back(aSignatureManager.getSecurityContext()); xSecContexts.push_back(aSignatureManager.getGpgSecurityContext()); |