summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/DocumentSigner.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/doc/DocumentSigner.cxx')
-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
{