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 /sd | |
parent | f300a627b9a88eb8814cc35844ed7c6aa7f19379 (diff) |
Eliminate dynamic_cast<const SfxVoidItem*>, use SfxPoolItem::IsVoidItem()
Change-Id: I09dafffd64dd107e802d016494d884f32363521a
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/app/tmplctrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/app/tmplctrl.cxx b/sd/source/ui/app/tmplctrl.cxx index 685d39d6d889..9203201f59f0 100644 --- a/sd/source/ui/app/tmplctrl.cxx +++ b/sd/source/ui/app/tmplctrl.cxx @@ -76,7 +76,7 @@ SdTemplateControl::~SdTemplateControl() void SdTemplateControl::StateChanged( sal_uInt16 /*nSID*/, SfxItemState eState, const SfxPoolItem* pState ) { - if( eState != SfxItemState::DEFAULT || dynamic_cast< const SfxVoidItem *>( pState ) != nullptr ) + if( eState != SfxItemState::DEFAULT || pState->IsVoidItem() ) GetStatusBar().SetItemText( GetId(), OUString() ); else if ( dynamic_cast< const SfxStringItem *>( pState ) != nullptr ) { |