From be5858089f5003db1316175941370b913d01e635 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 8 Oct 2021 06:39:31 +0200 Subject: use more SfxItemSetFixed Change-Id: I18784bac5f7ad1d109f8a81e96084cd6e9548231 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123240 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/dialogs/SpellDialog.cxx | 2 +- cui/source/dialogs/cuihyperdlg.cxx | 4 ++-- cui/source/tabpages/bbdlg.cxx | 7 +++---- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'cui') diff --git a/cui/source/dialogs/SpellDialog.cxx b/cui/source/dialogs/SpellDialog.cxx index 6adadba8441d..804bbbd50644 100644 --- a/cui/source/dialogs/SpellDialog.cxx +++ b/cui/source/dialogs/SpellDialog.cxx @@ -456,7 +456,7 @@ IMPL_LINK_NOARG(SpellDialog, CheckGrammarHdl, weld::Toggleable&, void) void SpellDialog::StartSpellOptDlg_Impl() { - SfxItemSet aSet( SfxGetpApp()->GetPool(), svl::Items); + SfxItemSetFixed aSet( SfxGetpApp()->GetPool() ); SfxSingleTabDialogController aDlg(m_xDialog.get(), &aSet, "cui/ui/spelloptionsdialog.ui", "SpellOptionsDialog"); std::unique_ptr xPage = SvxLinguTabPage::Create(aDlg.get_content_area(), &aDlg, &aSet); diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx index 350bdb6c6e14..66068c084274 100644 --- a/cui/source/dialogs/cuihyperdlg.cxx +++ b/cui/source/dialogs/cuihyperdlg.cxx @@ -117,8 +117,8 @@ SvxHpLinkDlg::SvxHpLinkDlg(SfxBindings* pBindings, SfxChildWindow* pChild, weld: m_xCancelBtn->set_label(CuiResId(RID_SVXSTR_HYPDLG_CLOSEBUT)); // create itemset for tabpages - mpItemSet = std::make_unique( SfxGetpApp()->GetPool(), svl::Items ); + mpItemSet = std::make_unique>( SfxGetpApp()->GetPool()); SvxHyperlinkItem aItem(SID_HYPERLINK_GETLINK); mpItemSet->Put(aItem); diff --git a/cui/source/tabpages/bbdlg.cxx b/cui/source/tabpages/bbdlg.cxx index 756e7abe9bea..488fc5283a6b 100644 --- a/cui/source/tabpages/bbdlg.cxx +++ b/cui/source/tabpages/bbdlg.cxx @@ -69,10 +69,9 @@ void SvxBorderBackgroundDlg::PageCreated(const OString& rPageId, SfxTabPage& rTa // demand, but could also be directly added from the DrawModel. else if (rPageId == "area") { - SfxItemSet aNew( - *GetInputSetImpl()->GetPool(), - svl::Items); + SfxItemSetFixed + aNew(*GetInputSetImpl()->GetPool()); aNew.Put(*GetInputSetImpl()); -- cgit