diff options
author | Eike Rathke <erack@redhat.com> | 2017-06-06 20:55:51 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-06-06 20:57:45 +0200 |
commit | ca8a4a7abc81a53a88fc0daa61447f9562f532f5 (patch) | |
tree | 658f57adbfc8bc52b9cb4cc3a52f191077b771cc /svx | |
parent | f300a627b9a88eb8814cc35844ed7c6aa7f19379 (diff) |
Eliminate dynamic_cast<const SfxVoidItem*>, use SfxPoolItem::IsVoidItem()
Change-Id: I09dafffd64dd107e802d016494d884f32363521a
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/stbctrls/zoomsliderctrl.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdibrow.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/stbctrls/zoomsliderctrl.cxx b/svx/source/stbctrls/zoomsliderctrl.cxx index 3c871557c00c..be0b0721f260 100644 --- a/svx/source/stbctrls/zoomsliderctrl.cxx +++ b/svx/source/stbctrls/zoomsliderctrl.cxx @@ -168,7 +168,7 @@ SvxZoomSliderControl::~SvxZoomSliderControl() void SvxZoomSliderControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState ) { - if ( (SfxItemState::DEFAULT != eState) || dynamic_cast<const SfxVoidItem*>( pState) != nullptr ) + if ( (SfxItemState::DEFAULT != eState) || pState->IsVoidItem() ) { GetStatusBar().SetItemText( GetId(), "" ); mxImpl->mbValuesSet = false; diff --git a/svx/source/svdraw/svdibrow.cxx b/svx/source/svdraw/svdibrow.cxx index 77bf2c1a3243..a83797f3c11a 100644 --- a/svx/source/svdraw/svdibrow.cxx +++ b/svx/source/svdraw/svdibrow.cxx @@ -920,7 +920,7 @@ void SdrItemBrowserControl::SetAttributes(const SfxItemSet* pSet, const SfxItemS if (eState!=SfxItemState::DISABLED) { const SfxPoolItem& rItem=pSet->Get(nWhich); sal_uInt16 nIndent=0; - if (dynamic_cast<const SfxVoidItem *>(&rItem) == nullptr && dynamic_cast<const SfxSetItem *>(&rItem) == nullptr + if (!rItem.IsVoidItem() && dynamic_cast<const SfxSetItem *>(&rItem) == nullptr && (!IsItemIneffective(nWhich,pSet,nIndent) || bDontHideIneffectiveItems)) { OUString aCommentStr; |