diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-14 09:27:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-14 09:28:25 +0000 |
commit | bd1a3e75738d65a3bdd615c106ea57a999d51376 (patch) | |
tree | 881fcddfbb2c22d84648fde74077e86500533d80 /cui | |
parent | e60506acc53098b4b479d565048c316562657cec (diff) |
configuration warnings about non-nillable properties with no default set
Change-Id: I5814f2e474e0ef5a37c5f43f8bb853219fd7981f
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/tsaurls.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/cui/source/options/tsaurls.cxx b/cui/source/options/tsaurls.cxx index d812f370c296..2c5e8a849bdd 100644 --- a/cui/source/options/tsaurls.cxx +++ b/cui/source/options/tsaurls.cxx @@ -36,11 +36,14 @@ TSAURLsDialog::TSAURLsDialog(vcl::Window* pParent) try { - css::uno::Sequence<OUString> aUserSetTSAURLs(officecfg::Office::Common::Security::Scripting::TSAURLs::get()); - - for (auto i = aUserSetTSAURLs.begin(); i != aUserSetTSAURLs.end(); ++i) + boost::optional<css::uno::Sequence<OUString>> aUserSetTSAURLs(officecfg::Office::Common::Security::Scripting::TSAURLs::get()); + if (aUserSetTSAURLs) { - AddTSAURL(*i); + const css::uno::Sequence<OUString>& rUserSetTSAURLs = aUserSetTSAURLs.get(); + for (auto i = rUserSetTSAURLs.begin(); i != rUserSetTSAURLs.end(); ++i) + { + AddTSAURL(*i); + } } } catch (const uno::Exception &e) |