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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user