From 21661ce368a3458a51fc6fccab8defebb9b9e59c Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Tue, 2 Jul 2024 12:02:05 +0200 Subject: tdf#161853 Simplify SvxIconChoiceCtrl_Impl::SetCursor_Impl Since Change-Id: I0acde664d695571e9058b9829ad02745a4abaad2 Author: Michael Weghorn Date: Tue Jul 2 11:53:27 2024 +0200 tdf#161853 icon choice ctrl: Drop support for non-single selection modes , the `bShift` and `bMod1` params passed to `SvxIconChoiceCtrl_Impl::SetCursor_Impl` are always false, so drop them and their handling. With that dropped, the `pOldCursor` param also becomes unused, so drop that as well. Change-Id: Ifd60c030b91636acc58298f0e7b97b69c1312be1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169873 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- vcl/source/control/imivctl.hxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'vcl/source/control/imivctl.hxx') diff --git a/vcl/source/control/imivctl.hxx b/vcl/source/control/imivctl.hxx index 4c6729a7a19d..03655f1599cd 100644 --- a/vcl/source/control/imivctl.hxx +++ b/vcl/source/control/imivctl.hxx @@ -268,12 +268,7 @@ public: bool MouseButtonUp( const MouseEvent& ); bool MouseMove( const MouseEvent&); bool RequestHelp( const HelpEvent& rHEvt ); - void SetCursor_Impl( - SvxIconChoiceCtrlEntry* pOldCursor, - SvxIconChoiceCtrlEntry* pNewCursor, - bool bMod1, - bool bShift - ); + void SetCursor_Impl(SvxIconChoiceCtrlEntry* pNewCursor); bool KeyInput( const KeyEvent& ); void Resize(); void GetFocus(); -- cgit