diff options
author | Eike Rathke <erack@redhat.com> | 2017-06-06 20:55:51 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-06-07 00:57:23 +0200 |
commit | 4b8637738c186a0b7ba3f9399e77fb9f2b9ecc8b (patch) | |
tree | 91f374a897ae4f02cc1912a66973b18bfe75791d /sd | |
parent | 3f94381f72782e0c5b16df12de6d52de96e8a0d5 (diff) |
Eliminate dynamic_cast<const SfxVoidItem*>, use SfxPoolItem::IsVoidItem()
Change-Id: I09dafffd64dd107e802d016494d884f32363521a
(cherry picked from commit ca8a4a7abc81a53a88fc0daa61447f9562f532f5)
Reviewed-on: https://gerrit.libreoffice.org/38463
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
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 ) { |