Related tdf#164685: Cleanup class SfxItemSetFixed (sfx2)

Change-Id: I71ca25b69040dd71c4b3b1c65276d0e8b42e6119
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/203925
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet
2026-04-19 12:30:56 +02:00
parent 6d0513e51b
commit b5c06fde3f
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -464,7 +464,7 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
const SfxStringItem* pStringItem = rReq.GetArg(SID_CONFIG);
SfxItemSetFixed<SID_CONFIG, SID_CONFIG, SID_MACROINFO, SID_MACROINFO> aSet( GetPool() );
SfxItemSet aSet(SfxItemSet::makeFixedSfxItemSet<SID_CONFIG, SID_CONFIG, SID_MACROINFO, SID_MACROINFO>( GetPool() ));
// SID_CONFIG property will determine the default page shown
if ( pStringItem )
@@ -1966,7 +1966,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
case SID_AUTO_CORRECT_DLG:
{
SfxAbstractDialogFactory* pFact = SfxAbstractDialogFactory::Create();
SfxItemSetFixed<SID_AUTO_CORRECT_DLG, SID_AUTO_CORRECT_DLG> aSet(GetPool());
SfxItemSet aSet(SfxItemSet::makeFixedSfxItemSet<SID_AUTO_CORRECT_DLG, SID_AUTO_CORRECT_DLG>(GetPool()));
const SfxPoolItem* pItem=nullptr;
const SfxItemSet* pSet = rReq.GetArgs();
if ( pSet && pSet->GetItemState( SID_AUTO_CORRECT_DLG, false, &pItem ) == SfxItemState::SET )
+2 -2
View File
@@ -737,9 +737,9 @@ void SfxObjectShell::ExecFile_Impl(SfxRequest &rReq)
// templates not supported
aDocInfoItem.SetTemplate(false);
SfxItemSetFixed<SID_DOCINFO, SID_DOCINFO, SID_DOC_READONLY, SID_DOC_READONLY,
SfxItemSet aSet(SfxItemSet::makeFixedSfxItemSet<SID_DOCINFO, SID_DOCINFO, SID_DOC_READONLY, SID_DOC_READONLY,
SID_EXPLORER_PROPS_START, SID_EXPLORER_PROPS_START, SID_BASEURL, SID_BASEURL>
aSet(GetPool());
(GetPool()));
aSet.Put( aDocInfoItem );
aSet.Put( SfxBoolItem( SID_DOC_READONLY, bReadOnly ) );
aSet.Put( SfxStringItem( SID_EXPLORER_PROPS_START, GetTitle() ) );
+2 -2
View File
@@ -2050,8 +2050,8 @@ IMPL_LINK_NOARG(SfxViewFrame, DontShowAgainHdl, weld::Button&, void)
IMPL_LINK_NOARG(SfxViewFrame, ChangeOptionsHdl, weld::Button&, void)
{
SfxApplication* pApp = SfxGetpApp();
SfxItemSetFixed<SID_AUTO_CORRECT_DLG, SID_OPEN_AUTOCORROPTIONS>
aSet(pApp->GetPool());
SfxItemSet aSet(SfxItemSet::makeFixedSfxItemSet<SID_AUTO_CORRECT_DLG, SID_OPEN_AUTOCORROPTIONS>
(pApp->GetPool()));
// show dialog with same tabs as opened via SID_AUTO_CORRECT_DLG
SfxBoolItem aDlg(SID_AUTO_CORRECT_DLG, true);
aSet.Put(aDlg);