diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-19 09:14:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-19 09:33:29 +0200 |
commit | 2554efabb6d7cd2ad9f7cfdddd0712c25cdca1cd (patch) | |
tree | 1b8fd3940910ffcd328e16a53e208c099f67ab21 /cui | |
parent | f7b5f477bfd942e0a1d8880c372635000d724dd7 (diff) |
use comphelper::containerToSequence
in chart2, we remove a local equivalent of the method
Change-Id: I25129a3d1ea1dd724eb9cd38a57be37a78b3d100
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/tsaurls.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cui/source/options/tsaurls.cxx b/cui/source/options/tsaurls.cxx index b5b0988ff434..d812f370c296 100644 --- a/cui/source/options/tsaurls.cxx +++ b/cui/source/options/tsaurls.cxx @@ -10,6 +10,7 @@ #include <officecfg/Office/Common.hxx> #include <svx/svxdlg.hxx> #include <cuires.hrc> +#include <comphelper/sequence.hxx> #include "tsaurls.hxx" @@ -52,12 +53,7 @@ IMPL_LINK_NOARG_TYPED(TSAURLsDialog, OKHdl_Impl, Button*, void) { std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create()); - css::uno::Sequence<OUString> aNewValue(m_aURLs.size()); - size_t n(0); - - for (auto i = m_aURLs.cbegin(); i != m_aURLs.cend(); ++i) - aNewValue[n++] = *i; - officecfg::Office::Common::Security::Scripting::TSAURLs::set(aNewValue, batch); + officecfg::Office::Common::Security::Scripting::TSAURLs::set(comphelper::containerToSequence<OUString>(m_aURLs), batch); batch->commit(); EndDialog(RET_OK); |