[Libreoffice-commits] core.git: filter/source

Jan-Marek Glogowski glogow at fbihome.de
Mon Mar 14 11:21:09 UTC 2016


 filter/source/pdf/impdialog.cxx |   11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

New commits:
commit c3605e91a8ecc12b4cd5b5239616541f6d50068a
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date:   Mon Mar 14 12:16:08 2016 +0100

    Fix build after oor:nillable TSAURLs change
    
    Fixes the fallout from bd1a3e75738d65a3bdd615c106ea57a999d51376
    
    Change-Id: Idfc019a034f3dd855ae85676962382879051e900

diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index fda658b6..0738f95 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -1715,11 +1715,14 @@ IMPL_LINK_NOARG_TYPED( ImpPDFTabSigningPage, ClickmaPbSignCertSelect, Button*, v
 
         try
         {
-            css::uno::Sequence<OUString> aTSAURLs(officecfg::Office::Common::Security::Scripting::TSAURLs::get());
-
-            for (auto i = aTSAURLs.begin(); i != aTSAURLs.end(); ++i)
+            boost::optional<css::uno::Sequence<OUString>> aTSAURLs(officecfg::Office::Common::Security::Scripting::TSAURLs::get());
+            if (aTSAURLs)
             {
-                mpLBSignTSA->InsertEntry( *i );
+                const css::uno::Sequence<OUString>& rTSAURLs = aTSAURLs.get();
+                for (auto i = rTSAURLs.begin(); i != rTSAURLs.end(); ++i)
+                {
+                    mpLBSignTSA->InsertEntry( *i );
+                }
             }
         }
         catch (const uno::Exception &e)


More information about the Libreoffice-commits mailing list