diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-09-15 14:04:29 +0400 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-09-17 09:54:50 +0200 |
commit | 9d265e1b693ccf2e6856ead3ca867fac36510726 (patch) | |
tree | fe9f7fbbf3af5916345c1265a8be80229614c8cc /uui | |
parent | 24aec4dad64f8408552ba1c1e070b04a7297713f (diff) |
fdo#54858: fix UNO service conversion
regression from 197a79e57131c976a489882479a679ba2ab61b82
Change-Id: I3fbba4da0d293659d8521c768d34de18cd6bc634
Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'uui')
-rw-r--r-- | uui/source/secmacrowarnings.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx index 12ff096200fc..44605e278f1a 100644 --- a/uui/source/secmacrowarnings.cxx +++ b/uui/source/secmacrowarnings.cxx @@ -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() ) |