summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/source/lib/init.cxx2
-rw-r--r--sfx2/source/doc/guisaveas.cxx2
-rw-r--r--sfx2/source/doc/objserv.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 3f20dc65ec04..a0f73fd49f8a 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -7280,7 +7280,7 @@ static bool doc_insertCertificate(LibreOfficeKitDocument* pThis,
SolarMutexGuard aGuard;
svl::crypto::SigningContext aSigningContext;
- aSigningContext.m_xCertificate = xCertificate;
+ aSigningContext.m_xCertificate = std::move(xCertificate);
return pObjectShell->SignDocumentContentUsingCertificate(aSigningContext);
}
diff --git a/sfx2/source/doc/guisaveas.cxx b/sfx2/source/doc/guisaveas.cxx
index a9b51afca983..0b093707b6d8 100644
--- a/sfx2/source/doc/guisaveas.cxx
+++ b/sfx2/source/doc/guisaveas.cxx
@@ -1924,7 +1924,7 @@ bool SfxStoringHelper::FinishGUIStoreModel(::comphelper::SequenceAsHashMap::cons
bFoundCert = true;
SfxObjectShell* pDocShell = SfxViewShell::Current()->GetObjectShell();
svl::crypto::SigningContext aSigningContext;
- aSigningContext.m_xCertificate = xCert;
+ aSigningContext.m_xCertificate = std::move(xCert);
bool bSigned = pDocShell->SignDocumentContentUsingCertificate(aSigningContext);
if (bSigned && pDocShell->HasValidSignatures())
{
diff --git a/sfx2/source/doc/objserv.cxx b/sfx2/source/doc/objserv.cxx
index 369ae57be6d8..1af4ddbcb902 100644
--- a/sfx2/source/doc/objserv.cxx
+++ b/sfx2/source/doc/objserv.cxx
@@ -581,7 +581,7 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
{
svl::crypto::SigningContext aSigningContext;
- aSigningContext.m_xCertificate = xCertificate;
+ aSigningContext.m_xCertificate = std::move(xCertificate);
bHaveWeSigned |= SignDocumentContentUsingCertificate(aSigningContext);
// Reload to show how the PDF actually looks like after signing. This also
@@ -2198,7 +2198,7 @@ bool SfxObjectShell::ResignDocument(uno::Sequence< security::DocumentSignatureIn
if (xCert.is())
{
svl::crypto::SigningContext aSigningContext;
- aSigningContext.m_xCertificate = xCert;
+ aSigningContext.m_xCertificate = std::move(xCert);
bSignSuccess &= SignDocumentContentUsingCertificate(aSigningContext);
}
}