summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-15 12:28:31 +0200
committerNoel Grandin <noel@peralex.com>2015-10-15 12:29:01 +0200
commit0e8a40e8b8c883611b6d34e47dc6e33ba60e0f91 (patch)
tree92e49014bb9b368309c98d85dcfbd2f673e23d54 /sc
parentcfc7307a23eed561152c1b016cd0ec22bc7af145 (diff)
calling IsSet() before Call() on Link<> is unnecessary
the Call() already does a check Found with: git grep -A 1 -w 'IsSet()' | grep -B 1 '.Call(' | grep ':' | cut -d ':' -f 1 Change-Id: Ia7248f5d62640b75f705e539c3d1183e39c0d847
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/filtdlg.cxx3
-rw-r--r--sc/source/ui/dbgui/sfiltdlg.cxx3
-rw-r--r--sc/source/ui/docshell/tablink.cxx3
-rw-r--r--sc/source/ui/pagedlg/tphfedit.cxx3
4 files changed, 4 insertions, 8 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx
index 94b1148af7b7..009b84b39bf3 100644
--- a/sc/source/ui/dbgui/filtdlg.cxx
+++ b/sc/source/ui/dbgui/filtdlg.cxx
@@ -451,8 +451,7 @@ void ScFilterDlg::SetActive()
if ( bRefInputMode )
{
pEdCopyArea->GrabFocus();
- if ( pEdCopyArea->GetModifyHdl().IsSet() )
- ((Link<>&)pEdCopyArea->GetModifyHdl()).Call( pEdCopyArea );
+ ((Link<>&)pEdCopyArea->GetModifyHdl()).Call( pEdCopyArea );
}
else
GrabFocus();
diff --git a/sc/source/ui/dbgui/sfiltdlg.cxx b/sc/source/ui/dbgui/sfiltdlg.cxx
index f4f972d83bb2..560391eb5fa8 100644
--- a/sc/source/ui/dbgui/sfiltdlg.cxx
+++ b/sc/source/ui/dbgui/sfiltdlg.cxx
@@ -252,8 +252,7 @@ void ScSpecialFilterDlg::SetActive()
if ( pRefInputEdit == pEdCopyArea )
{
pEdCopyArea->GrabFocus();
- if ( pEdCopyArea->GetModifyHdl().IsSet() )
- ((Link<>&)pEdCopyArea->GetModifyHdl()).Call( pEdCopyArea );
+ ((Link<>&)pEdCopyArea->GetModifyHdl()).Call( pEdCopyArea );
}
else if ( pRefInputEdit == pEdFilterArea )
{
diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx
index 4cb613f5fd51..54a1930c21dd 100644
--- a/sc/source/ui/docshell/tablink.cxx
+++ b/sc/source/ui/docshell/tablink.cxx
@@ -420,8 +420,7 @@ IMPL_LINK_NOARG_TYPED(ScTableLink, RefreshHdl, Timer *, void)
IMPL_LINK_TYPED( ScTableLink, TableEndEditHdl, ::sfx2::SvBaseLink&, rLink, void )
{
- if ( pImpl->m_aEndEditLink.IsSet() )
- pImpl->m_aEndEditLink.Call( rLink );
+ pImpl->m_aEndEditLink.Call( rLink );
bInEdit = false;
Application::SetDefDialogParent( pImpl->m_pOldParent );
}
diff --git a/sc/source/ui/pagedlg/tphfedit.cxx b/sc/source/ui/pagedlg/tphfedit.cxx
index b1c833cb028a..d1a12fc96939 100644
--- a/sc/source/ui/pagedlg/tphfedit.cxx
+++ b/sc/source/ui/pagedlg/tphfedit.cxx
@@ -271,8 +271,7 @@ void ScEditWindow::KeyInput( const KeyEvent& rKEvt )
else if ( !rKEvt.GetKeyCode().IsMod1() && !rKEvt.GetKeyCode().IsShift() &&
rKEvt.GetKeyCode().IsMod2() && rKEvt.GetKeyCode().GetCode() == KEY_DOWN )
{
- if (aObjectSelectLink.IsSet() )
- aObjectSelectLink.Call(*this);
+ aObjectSelectLink.Call(*this);
}
}