diff options
Diffstat (limited to 'sc/source/ui/navipi/scenwnd.cxx')
-rw-r--r-- | sc/source/ui/navipi/scenwnd.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/navipi/scenwnd.cxx b/sc/source/ui/navipi/scenwnd.cxx index a8e53ab997a5..322a154c9965 100644 --- a/sc/source/ui/navipi/scenwnd.cxx +++ b/sc/source/ui/navipi/scenwnd.cxx @@ -252,7 +252,7 @@ void ScScenarioWindow::NotifyState( const SfxPoolItem* pState ) { aLbScenario->Enable(); - if ( pState->ISA(SfxStringItem) ) + if ( dynamic_cast<const SfxStringItem*>( pState) != nullptr ) { OUString aNewEntry( static_cast<const SfxStringItem*>(pState)->GetValue() ); @@ -261,7 +261,7 @@ void ScScenarioWindow::NotifyState( const SfxPoolItem* pState ) else aLbScenario->SetNoSelection(); } - else if ( pState->ISA(SfxStringListItem) ) + else if ( dynamic_cast<const SfxStringListItem*>( pState) != nullptr ) { aLbScenario->UpdateEntries( static_cast<const SfxStringListItem*>(pState)->GetList() ); } |