diff options
author | Noel Grandin <noel@peralex.com> | 2016-03-08 14:10:53 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-09 10:07:45 +0200 |
commit | ff745fc0d973b8d793c3ec21f258ebe695ce3ee2 (patch) | |
tree | 79a77c34041c5c9f93aea7c10bce5bfb5ec55d98 /svx/source/form | |
parent | c09b3e32372537be739182b02ae83a96386d1e1c (diff) |
loplugin:constantparam in svx
Change-Id: Ib2a432fc334898c75ab5e5cf629a21fd310bd467
Diffstat (limited to 'svx/source/form')
-rw-r--r-- | svx/source/form/fmshell.cxx | 8 | ||||
-rw-r--r-- | svx/source/form/fmshimp.cxx | 8 |
2 files changed, 7 insertions, 9 deletions
diff --git a/svx/source/form/fmshell.cxx b/svx/source/form/fmshell.cxx index 18a29f44c7ed..16e04f349dd0 100644 --- a/svx/source/form/fmshell.cxx +++ b/svx/source/form/fmshell.cxx @@ -750,7 +750,7 @@ void FmFormShell::Execute(SfxRequest &rReq) DBG_ASSERT( pFact, "no dialog factory!" ); if ( pFact ) { - std::unique_ptr< AbstractFmInputRecordNoDialog > dlg( pFact->CreateFmInputRecordNoDialog( nullptr ) ); + std::unique_ptr< AbstractFmInputRecordNoDialog > dlg( pFact->CreateFmInputRecordNoDialog() ); DBG_ASSERT( dlg.get(), "Dialog creation failed!" ); dlg->SetValue( rController->getCursor()->getRow() ); if ( dlg->Execute() == RET_OK ) @@ -959,7 +959,7 @@ void FmFormShell::GetState(SfxItemSet &rSet) // der Impl eventuell die Moeglichjkeit geben, ihre an der aktuellen MarkList ausgerichteten Objekte // auf den neuesten Stand zu bringen if (GetImpl()->IsSelectionUpdatePending()) - GetImpl()->ForceUpdateSelection(false); + GetImpl()->ForceUpdateSelection(); if ( !m_pFormView || !m_bDesignMode || !GetImpl()->onlyControlsAreMarked() ) rSet.DisableItem( nWhich ); @@ -978,7 +978,7 @@ void FmFormShell::GetState(SfxItemSet &rSet) // der Impl eventuell die Moeglichjkeit geben, ihre an der aktuellen MarkList ausgerichteten Objekte // auf den neuesten Stand zu bringen if (GetImpl()->IsSelectionUpdatePending()) - GetImpl()->ForceUpdateSelection(false); + GetImpl()->ForceUpdateSelection(); if ( !m_pFormView || !m_bDesignMode || !GetImpl()->getCurrentForm().is() ) rSet.DisableItem( nWhich ); @@ -992,7 +992,7 @@ void FmFormShell::GetState(SfxItemSet &rSet) // der Impl eventuell die Moeglichjkeit geben, ihre an der aktuellen MarkList ausgerichteten Objekte // auf den neuesten Stand zu bringen if (GetImpl()->IsSelectionUpdatePending()) - GetImpl()->ForceUpdateSelection(false); + GetImpl()->ForceUpdateSelection(); if (!m_pFormView || !m_bDesignMode || !GetImpl()->getCurrentForm().is() ) rSet.DisableItem( nWhich ); diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index d03efc06f4ad..0e8f324268db 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -1021,7 +1021,7 @@ IMPL_LINK_NOARG_TYPED(FmXFormShell, OnInvalidateSlots, void*,void) } -void FmXFormShell::ForceUpdateSelection(bool bAllowInvalidation) +void FmXFormShell::ForceUpdateSelection() { if ( impl_checkDisposed() ) return; @@ -1031,13 +1031,11 @@ void FmXFormShell::ForceUpdateSelection(bool bAllowInvalidation) m_aMarkTimer.Stop(); // die Invalidierung der Slots, die implizit von SetSelection besorgt wird, eventuell abschalten - if (!bAllowInvalidation) - LockSlotInvalidation(true); + LockSlotInvalidation(true); SetSelection(m_pShell->GetFormView()->GetMarkedObjectList()); - if (!bAllowInvalidation) - LockSlotInvalidation(false); + LockSlotInvalidation(false); } } |