diff options
Diffstat (limited to 'sfx2/source/control')
-rw-r--r-- | sfx2/source/control/bindings.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/shell.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx index 012596c175b3..eb0592dc479f 100644 --- a/sfx2/source/control/bindings.cxx +++ b/sfx2/source/control/bindings.cxx @@ -1043,7 +1043,7 @@ void SfxBindings::Execute_Impl( SfxRequest& aReq, const SfxSlot* pSlot, SfxShell { // The value is attached to a toggleable attribute (Bools) sal_uInt16 nWhich = pSlot->GetWhich(rPool); - SfxItemSet aSet(rPool, nWhich, nWhich); + SfxItemSet aSet(rPool, {{nWhich, nWhich}}); SfxStateFunc aFunc = pSlot->GetStateFnc(); pShell->CallState( aFunc, aSet ); const SfxPoolItem *pOldItem; diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index ce67c0f8dac3..5bf5b0c413a6 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -382,7 +382,7 @@ bool SfxShell::CanExecuteSlot_Impl( const SfxSlot &rSlot ) // Get Slot status SfxItemPool &rPool = GetPool(); const sal_uInt16 nId = rSlot.GetWhich( rPool ); - SfxItemSet aSet(rPool, nId, nId); + SfxItemSet aSet(rPool, {{nId, nId}}); SfxStateFunc pFunc = rSlot.GetStateFnc(); CallState( pFunc, aSet ); return aSet.GetItemState(nId) != SfxItemState::DISABLED; @@ -454,7 +454,7 @@ const SfxPoolItem* SfxShell::GetSlotState // Get Item and Item status const SfxPoolItem *pItem = nullptr; - SfxItemSet aSet( rPool, nSlotId, nSlotId ); // else pItem dies too soon + SfxItemSet aSet( rPool, {{nSlotId, nSlotId}} ); // else pItem dies too soon if ( pSlot ) { // Call Status method |