summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-06-06 20:55:51 +0200
committerEike Rathke <erack@redhat.com>2017-06-06 20:57:45 +0200
commitca8a4a7abc81a53a88fc0daa61447f9562f532f5 (patch)
tree658f57adbfc8bc52b9cb4cc3a52f191077b771cc /sc
parentf300a627b9a88eb8814cc35844ed7c6aa7f19379 (diff)
Eliminate dynamic_cast<const SfxVoidItem*>, use SfxPoolItem::IsVoidItem()
Change-Id: I09dafffd64dd107e802d016494d884f32363521a
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/cctrl/tbzoomsliderctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
index 7b99fd1459a9..357e6d25635f 100644
--- a/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
+++ b/sc/source/ui/cctrl/tbzoomsliderctrl.cxx
@@ -62,7 +62,7 @@ void ScZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState
ScZoomSliderWnd* pBox = static_cast<ScZoomSliderWnd*>(rTbx.GetItemWindow( nId ));
OSL_ENSURE( pBox ,"Control not found!" );
- if ( SfxItemState::DEFAULT != eState || dynamic_cast<const SfxVoidItem*>( pState) != nullptr )
+ if ( SfxItemState::DEFAULT != eState || pState->IsVoidItem() )
{
SvxZoomSliderItem aZoomSliderItem( 100 );
pBox->Disable();