[Libreoffice-commits] .: uui/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Sep 17 00:55:35 PDT 2012


 uui/source/secmacrowarnings.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 9d265e1b693ccf2e6856ead3ca867fac36510726
Author: Ivan Timofeev <timofeev.i.s at gmail.com>
Date:   Sat Sep 15 14:04:29 2012 +0400

    fdo#54858: fix UNO service conversion
    
    regression from 197a79e57131c976a489882479a679ba2ab61b82
    
    Change-Id: I3fbba4da0d293659d8521c768d34de18cd6bc634
    Signed-off-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx
index 12ff096..44605e2 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() )


More information about the Libreoffice-commits mailing list