diff options
Diffstat (limited to 'cui/source/options/tsaurls.cxx')
-rw-r--r-- | cui/source/options/tsaurls.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/options/tsaurls.cxx b/cui/source/options/tsaurls.cxx index 9d228b68eebf..521c92401f44 100644 --- a/cui/source/options/tsaurls.cxx +++ b/cui/source/options/tsaurls.cxx @@ -37,9 +37,9 @@ TSAURLsDialog::TSAURLsDialog(Window* pParent) { css::uno::Sequence<OUString> aUserSetTSAURLs(officecfg::Office::Common::Security::Scripting::TSAURLs::get()); - for (auto i = aUserSetTSAURLs.begin(); i != aUserSetTSAURLs.end(); ++i) + for (sal_Int32 i = 0; i < aUserSetTSAURLs.getLength(); ++i) { - AddTSAURL(*i); + AddTSAURL(aUserSetTSAURLs[i]); } } catch (const uno::Exception &e) @@ -55,7 +55,7 @@ IMPL_LINK_NOARG(TSAURLsDialog, OKHdl_Impl) css::uno::Sequence<OUString> aNewValue(m_aURLs.size()); size_t n(0); - for (auto i = m_aURLs.begin(); i != m_aURLs.end(); ++i) + for (std::set<OUString>::iterator i = m_aURLs.begin(); i != m_aURLs.end(); ++i) aNewValue[n++] = *i; officecfg::Office::Common::Security::Scripting::TSAURLs::set(aNewValue, batch); batch->commit(); @@ -76,7 +76,7 @@ void TSAURLsDialog::AddTSAURL(const OUString& rURL) m_pURLListBox->SetUpdateMode(false); m_pURLListBox->Clear(); - for (auto i = m_aURLs.begin(); i != m_aURLs.end(); ++i) + for (std::set<OUString>::iterator i = m_aURLs.begin(); i != m_aURLs.end(); ++i) { m_pURLListBox->InsertEntry(*i); } |