summaryrefslogtreecommitdiff
path: root/sc/source/ui/cctrl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-14 13:54:03 +0200
committerNoel Grandin <noel@peralex.com>2016-01-15 09:36:41 +0200
commitabb87856dd6a722245cc9dd690bfcec6ecd901da (patch)
treea2d28f2bebb91cb8b25a51a8b5ae9890ebddd3ce /sc/source/ui/cctrl
parent6f2ce5c31708e5914d6d17d69b45f15a4429f8e3 (diff)
loplugin:unusedmethods unused return value in sc
Change-Id: Ic0b4d7efb2679f735892806d66258af231cda3fe
Diffstat (limited to 'sc/source/ui/cctrl')
-rw-r--r--sc/source/ui/cctrl/checklistmenu.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index 8f7a3a9ec771..a167c130d933 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1563,7 +1563,7 @@ void ScCheckListBox::ShowCheckEntry( const OUString& sName, SvTreeListEntry* pPa
RemoveParentKeepChildren( pEntry );
}
-SvTreeListEntry* ScCheckListBox::CountCheckedEntries( SvTreeListEntry* pParent, sal_uLong& nCount ) const
+void ScCheckListBox::CountCheckedEntries( SvTreeListEntry* pParent, sal_uLong& nCount ) const
{
if ( pParent && GetCheckButtonState( pParent ) == SV_BUTTON_CHECKED )
nCount++;
@@ -1574,7 +1574,6 @@ SvTreeListEntry* ScCheckListBox::CountCheckedEntries( SvTreeListEntry* pParent,
CountCheckedEntries( pEntry, nCount );
pEntry = NextSibling( pEntry );
}
- return nullptr;
}
sal_uInt16 ScCheckListBox::GetCheckedEntryCount() const