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 /sfx2/source/statbar | |
parent | f300a627b9a88eb8814cc35844ed7c6aa7f19379 (diff) |
Eliminate dynamic_cast<const SfxVoidItem*>, use SfxPoolItem::IsVoidItem()
Change-Id: I09dafffd64dd107e802d016494d884f32363521a
Diffstat (limited to 'sfx2/source/statbar')
-rw-r--r-- | sfx2/source/statbar/stbitem.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx index 5d1cf9c460bd..12c977e8e5b0 100644 --- a/sfx2/source/statbar/stbitem.cxx +++ b/sfx2/source/statbar/stbitem.cxx @@ -410,7 +410,7 @@ void SfxStatusBarControl::StateChanged pBar->SetItemText( nSID, pStr->GetValue() ); else { - DBG_ASSERT( eState != SfxItemState::DEFAULT || dynamic_cast< const SfxVoidItem *>( pState ) != nullptr, + DBG_ASSERT( eState != SfxItemState::DEFAULT || pState->IsVoidItem(), "wrong SfxPoolItem subclass in SfxStatusBarControl" ); pBar->SetItemText( nSID, OUString() ); } |