summaryrefslogtreecommitdiff
path: root/filter/source/pdf
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-03-14 12:16:08 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2016-03-14 12:16:08 +0100
commitc3605e91a8ecc12b4cd5b5239616541f6d50068a (patch)
tree70779a06f78e2c641beca9c6d217abaed83b863f /filter/source/pdf
parent7fdc29469d3d098c1b2d5b1cfc7ed907031eb932 (diff)
Fix build after oor:nillable TSAURLs change
Fixes the fallout from bd1a3e75738d65a3bdd615c106ea57a999d51376 Change-Id: Idfc019a034f3dd855ae85676962382879051e900
Diffstat (limited to 'filter/source/pdf')
-rw-r--r--filter/source/pdf/impdialog.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index fda658b6d978..0738f953909d 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)