summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/lboxctrl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/lboxctrl.cxx')
-rw-r--r--svx/source/tbxctrls/lboxctrl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/lboxctrl.cxx b/svx/source/tbxctrls/lboxctrl.cxx
index 53ac64e6950b..8b0159bce12f 100644
--- a/svx/source/tbxctrls/lboxctrl.cxx
+++ b/svx/source/tbxctrls/lboxctrl.cxx
@@ -242,7 +242,7 @@ void SvxUndoRedoControl::StateChanged(
ToolBox& rBox = GetToolBox();
rBox.SetQuickHelpText( GetId(), aDefaultText );
}
- else if ( pState && pState->ISA( SfxStringItem ) )
+ else if ( pState && dynamic_cast<const SfxStringItem*>( pState) != nullptr )
{
const SfxStringItem& rItem = *static_cast<const SfxStringItem *>(pState);
ToolBox& rBox = GetToolBox();
@@ -255,7 +255,7 @@ void SvxUndoRedoControl::StateChanged(
{
aUndoRedoList.clear();
- if ( pState && pState->ISA( SfxStringListItem ) )
+ if ( pState && dynamic_cast<const SfxStringListItem*>( pState) != nullptr )
{
const SfxStringListItem &rItem = *static_cast<const SfxStringListItem *>(pState);