summaryrefslogtreecommitdiff
path: root/sfx2/source/inet
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-07-26 17:05:26 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-07-27 08:43:31 +0200
commitae34c3fe49267be34f9fb055ea1cb92240796a26 (patch)
treec9c5250268b5d574c45f6c7fa3fda1c2e4481063 /sfx2/source/inet
parentdf2b617b612f24b1dd394faf6fd605bdc69790cb (diff)
use officecfg for SvtHistoryOptions
Change-Id: I5cfd3a51bc4026ccb66ee23eb6f49a5dff5fe042 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119525 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/inet')
-rw-r--r--sfx2/source/inet/inettbc.cxx15
1 files changed, 4 insertions, 11 deletions
diff --git a/sfx2/source/inet/inettbc.cxx b/sfx2/source/inet/inettbc.cxx
index 52b1d7ad1341..0db4f7729008 100644
--- a/sfx2/source/inet/inettbc.cxx
+++ b/sfx2/source/inet/inettbc.cxx
@@ -243,19 +243,12 @@ void SfxURLToolBoxControl_Impl::StateChangedAtToolBoxControl
SvtURLBox* pURLBox = GetURLBox();
pURLBox->clear();
- const css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > lList = SvtHistoryOptions().GetList(EHistoryType::PickList);
- for (const css::uno::Sequence< css::beans::PropertyValue >& lProps : lList)
+ const std::vector< SvtHistoryOptions::HistoryItem > lList = SvtHistoryOptions::GetList(EHistoryType::PickList);
+ for (const SvtHistoryOptions::HistoryItem& lProps : lList)
{
- for (const auto& rProp : lProps)
+ if (!lProps.sURL.isEmpty())
{
- if (rProp.Name != HISTORY_PROPERTYNAME_URL)
- continue;
-
- OUString sURL;
- if (!(rProp.Value>>=sURL) || sURL.isEmpty())
- continue;
-
- INetURLObject aURL ( sURL );
+ INetURLObject aURL ( lProps.sURL );
OUString sMainURL( aURL.GetMainURL( INetURLObject::DecodeMechanism::WithCharset ) );
OUString sFile;