cid#1640467 COPY_INSTEAD_OF_MOVE

Change-Id: Id029fdf37d8b7b1e8d0bae672d37f6dfcbef8ce8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180433
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2025-01-18 11:11:38 +00:00
parent 8c70c58c28
commit 055a1520e7

View File

@@ -4767,11 +4767,10 @@ static void doc_initializeForRendering(LibreOfficeKitDocument* pThis,
}
if (!aSignatureCert.empty() && !aSignatureKey.empty())
{
uno::Reference<security::XCertificate> xCertificate = SfxLokHelper::getSigningCertificate(aSignatureCert, aSignatureKey);
if (SfxViewShell* pViewShell = SfxViewShell::Current())
{
svl::crypto::CertificateOrName aCertificateOrName;
aCertificateOrName.m_xCertificate = xCertificate;
aCertificateOrName.m_xCertificate = SfxLokHelper::getSigningCertificate(aSignatureCert, aSignatureKey);
pViewShell->SetSigningCertificate(aCertificateOrName);
}
}