summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-27 21:08:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-28 16:51:51 +0200
commitff41cf1b8dbeb36b8824257acb5c5ba272415108 (patch)
treef10fd5ac3dac8b21ab0540a2fc66ee3ebaf16a7e /sfx2
parent9c9e5b5ee7f1144c20624ac9471354a218638175 (diff)
loplugin:oncevar
Change-Id: I3c014f53607a849c743a2fd1aa47d03d5af978fb Reviewed-on: https://gerrit.libreoffice.org/76495 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/DocumentSigner.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sfx2/source/doc/DocumentSigner.cxx b/sfx2/source/doc/DocumentSigner.cxx
index d7b05d6acdbd..519a66a40089 100644
--- a/sfx2/source/doc/DocumentSigner.cxx
+++ b/sfx2/source/doc/DocumentSigner.cxx
@@ -35,8 +35,6 @@ bool DocumentSigner::signDocument(uno::Reference<security::XCertificate> const&
utl::UcbStreamHelper::CreateStream(m_aUrl, StreamMode::READ | StreamMode::WRITE));
uno::Reference<io::XStream> xInputStream(new utl::OStreamWrapper(std::move(pStream)));
- bool bHasValidDocumentSignature = true;
-
bool bResult = false;
uno::Reference<embed::XStorage> xWriteableZipStore;
try
@@ -52,7 +50,8 @@ bool DocumentSigner::signDocument(uno::Reference<security::XCertificate> const&
uno::Reference<security::XDocumentDigitalSignatures> xSigner(
security::DocumentDigitalSignatures::createWithVersionAndValidSignature(
- comphelper::getProcessComponentContext(), aODFVersion, bHasValidDocumentSignature));
+ comphelper::getProcessComponentContext(), aODFVersion,
+ /*bHasValidDocumentSignature*/ true));
try
{