diff options
author | Armin Le Grand (Allotropia) <armin.le.grand@me.com> | 2021-06-17 10:17:25 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@me.com> | 2021-06-18 11:10:56 +0200 |
commit | 04cd6749177f886f382e8bcd026f95112ee22473 (patch) | |
tree | b74693c1a738add2df00cedc85397720598f3021 /sc/source | |
parent | 6317f8cc83ec92b8700785ab67c4c66ed1aa8fb2 (diff) |
tdf#130428 remove unnecessary usage of SfxItemState::UNKNOWN
Rename ::StateChanged methods using SfxItemState to allow
better analysis of SfxItemState/SfxPoolItem usage(s),
discussion see tdf#130428 comment 30
Change-Id: I736be0160ad7a9b7882c1c8a4cc05d9396ee3305
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117366
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/cctrl/tbzoomsliderctrl.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/navcitem.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/inc/tbzoomsliderctrl.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/navipi/navcitem.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/sidebar/NumberFormatControl.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx index ee0a5021fc66..b87c090d2fd4 100644 --- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx +++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx @@ -48,7 +48,7 @@ ScZoomSliderControl::~ScZoomSliderControl() } -void ScZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState, +void ScZoomSliderControl::StateChangedAtToolBoxControl( sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState ) { ToolBoxItemId nId = GetId(); diff --git a/sc/source/ui/inc/navcitem.hxx b/sc/source/ui/inc/navcitem.hxx index 1ae445fb5bc8..17131afbaee8 100644 --- a/sc/source/ui/inc/navcitem.hxx +++ b/sc/source/ui/inc/navcitem.hxx @@ -30,7 +30,7 @@ public: ScNavigatorDlg& rDlg, SfxBindings& rBindings ); protected: - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, + virtual void StateChangedAtToolBoxControl( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pItem ) override; private: diff --git a/sc/source/ui/inc/tbzoomsliderctrl.hxx b/sc/source/ui/inc/tbzoomsliderctrl.hxx index 1a18fc80cee1..1ef4d521c672 100644 --- a/sc/source/ui/inc/tbzoomsliderctrl.hxx +++ b/sc/source/ui/inc/tbzoomsliderctrl.hxx @@ -35,7 +35,7 @@ public: ScZoomSliderControl( sal_uInt16 nSlotId, ToolBoxItemId nId, ToolBox& rTbx ); virtual ~ScZoomSliderControl() override; - virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override; + virtual void StateChangedAtToolBoxControl( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ) override; virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window *pParent ) override; }; diff --git a/sc/source/ui/navipi/navcitem.cxx b/sc/source/ui/navipi/navcitem.cxx index ba996ce1df79..871fbd445e9b 100644 --- a/sc/source/ui/navipi/navcitem.cxx +++ b/sc/source/ui/navipi/navcitem.cxx @@ -34,7 +34,7 @@ ScNavigatorControllerItem::ScNavigatorControllerItem( sal_uInt16 nIdP, { } -void ScNavigatorControllerItem::StateChanged( sal_uInt16 /* nSID */, SfxItemState /* eState */, +void ScNavigatorControllerItem::StateChangedAtToolBoxControl( sal_uInt16 /* nSID */, SfxItemState /* eState */, const SfxPoolItem* pItem ) { switch( GetId() ) diff --git a/sc/source/ui/sidebar/NumberFormatControl.cxx b/sc/source/ui/sidebar/NumberFormatControl.cxx index 0337ec5cad04..1060f0f5db45 100644 --- a/sc/source/ui/sidebar/NumberFormatControl.cxx +++ b/sc/source/ui/sidebar/NumberFormatControl.cxx @@ -35,7 +35,7 @@ ScNumberFormatControl::~ScNumberFormatControl() { } -void ScNumberFormatControl::StateChanged(sal_uInt16, SfxItemState eState, +void ScNumberFormatControl::StateChangedAtToolBoxControl(sal_uInt16, SfxItemState eState, const SfxPoolItem* pState) { ToolBoxItemId nId = GetId(); |