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 /reportdesign/source/ui | |
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 'reportdesign/source/ui')
-rw-r--r-- | reportdesign/source/ui/dlg/AddField.cxx | 3 | ||||
-rw-r--r-- | reportdesign/source/ui/misc/ColorListener.cxx | 3 | ||||
-rw-r--r-- | reportdesign/source/ui/report/StartMarker.cxx | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/reportdesign/source/ui/dlg/AddField.cxx b/reportdesign/source/ui/dlg/AddField.cxx index 9da77b696bb5..9f4f284709f5 100644 --- a/reportdesign/source/ui/dlg/AddField.cxx +++ b/reportdesign/source/ui/dlg/AddField.cxx @@ -506,8 +506,7 @@ IMPL_LINK_NOARG_TYPED( OAddFieldWindow, OnClickHdl, Button*, void ) IMPL_LINK_NOARG_TYPED( OAddFieldWindow, OnDoubleClickHdl, SvTreeListBox*, bool ) { - if ( m_aCreateLink.IsSet() ) - m_aCreateLink.Call(*this); + m_aCreateLink.Call(*this); return false; } diff --git a/reportdesign/source/ui/misc/ColorListener.cxx b/reportdesign/source/ui/misc/ColorListener.cxx index 448913ec501b..a4ec6faf4ddd 100644 --- a/reportdesign/source/ui/misc/ColorListener.cxx +++ b/reportdesign/source/ui/misc/ColorListener.cxx @@ -77,8 +77,7 @@ void OColorListener::setCollapsed(bool _bCollapsed) if ( m_bCollapsed != _bCollapsed ) { m_bCollapsed = _bCollapsed; - if ( m_aCollapsedLink.IsSet() ) - m_aCollapsedLink.Call(*this); + m_aCollapsedLink.Call(*this); } } diff --git a/reportdesign/source/ui/report/StartMarker.cxx b/reportdesign/source/ui/report/StartMarker.cxx index 5bb48bc5ef5d..af9294c31bd2 100644 --- a/reportdesign/source/ui/report/StartMarker.cxx +++ b/reportdesign/source/ui/report/StartMarker.cxx @@ -182,8 +182,7 @@ void OStartMarker::MouseButtonUp( const MouseEvent& rMEvt ) changeImage(); m_aVRuler->Show(!m_bCollapsed && m_bShowRuler); - if ( m_aCollapsedLink.IsSet() ) - m_aCollapsedLink.Call(*this); + m_aCollapsedLink.Call(*this); } m_pParent->showProperties(); |