diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-15 12:28:31 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-15 12:29:01 +0200 |
commit | 0e8a40e8b8c883611b6d34e47dc6e33ba60e0f91 (patch) | |
tree | 92e49014bb9b368309c98d85dcfbd2f673e23d54 /sd | |
parent | cfc7307a23eed561152c1b016cd0ec22bc7af145 (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 'sd')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationCreateDialog.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/dlg/docprev.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/tools/SlotStateListener.cxx | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx index 1a2e538caac6..ee0435ecf8eb 100644 --- a/sd/source/ui/animations/CustomAnimationCreateDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationCreateDialog.cxx @@ -147,8 +147,7 @@ void CategoryListBox::MouseButtonUp( const MouseEvent& rMEvt ) ReleaseMouse(); if( rMEvt.IsLeft() && (rMEvt.GetClicks() == 2) ) { - if( maDoubleClickHdl.IsSet() ) - maDoubleClickHdl.Call( *this ); + maDoubleClickHdl.Call( *this ); } else { diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index 7540fa7a1946..38ded5a9b710 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -203,8 +203,7 @@ bool SdDocPreviewWin::Notify( NotifyEvent& rNEvt ) { if( rNEvt.GetWindow() == this ) { - if(aClickHdl.IsSet()) - aClickHdl.Call(*this); + aClickHdl.Call(*this); } } } diff --git a/sd/source/ui/tools/SlotStateListener.cxx b/sd/source/ui/tools/SlotStateListener.cxx index a3d1be1c462b..c3fc2275fcff 100644 --- a/sd/source/ui/tools/SlotStateListener.cxx +++ b/sd/source/ui/tools/SlotStateListener.cxx @@ -122,8 +122,7 @@ void SlotStateListener::statusChanged ( { ThrowIfDisposed(); OUString sSlotName (rState.FeatureURL.Complete); - if (maCallback.IsSet()) - maCallback.Call(sSlotName); + maCallback.Call(sSlotName); } void SlotStateListener::ReleaseListeners() |