From 9d265e1b693ccf2e6856ead3ca867fac36510726 Mon Sep 17 00:00:00 2001 From: Ivan Timofeev Date: Sat, 15 Sep 2012 14:04:29 +0400 Subject: fdo#54858: fix UNO service conversion regression from 197a79e57131c976a489882479a679ba2ab61b82 Change-Id: I3fbba4da0d293659d8521c768d34de18cd6bc634 Signed-off-by: Stephan Bergmann --- uui/source/secmacrowarnings.cxx | 8 ++------ 1 file 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() ) -- cgit v1.2.3