Kaydet (Commit) 9d265e1b authored tarafından Ivan Timofeev's avatar Ivan Timofeev Kaydeden (comit) Stephan Bergmann

fdo#54858: fix UNO service conversion

regression from 197a79e5

Change-Id: I3fbba4da0d293659d8521c768d34de18cd6bc634
Signed-off-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 24aec4da
......@@ -113,10 +113,8 @@ IMPL_LINK_NOARG(MacroWarning, ViewSignsBtnHdl)
{
DBG_ASSERT( mxCert.is(), "*MacroWarning::ViewSignsBtnHdl(): no certificate set!" );
uno::Sequence< uno::Any > aArgs( 1 );
aArgs[0] = uno::makeAny( maODFVersion );
uno::Reference< security::XDocumentDigitalSignatures > xD(
security::DocumentDigitalSignatures::createDefault(comphelper::getProcessComponentContext()) );
security::DocumentDigitalSignatures::createWithVersion(comphelper::getProcessComponentContext(), maODFVersion));
if( xD.is() )
{
if( mxCert.is() )
......@@ -132,10 +130,8 @@ IMPL_LINK_NOARG(MacroWarning, EnableBtnHdl)
{
if( mbSignedMode && maAlwaysTrustCB.IsChecked() )
{ // insert path into trusted path list
uno::Sequence< uno::Any > aArgs( 1 );
aArgs[0] = uno::makeAny( maODFVersion );
uno::Reference< security::XDocumentDigitalSignatures > xD(
security::DocumentDigitalSignatures::createDefault(comphelper::getProcessComponentContext()) );
security::DocumentDigitalSignatures::createWithVersion(comphelper::getProcessComponentContext(), maODFVersion));
if( mxCert.is() )
xD->addAuthorToTrustedSources( mxCert );
else if( mxStore.is() )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment