diff options
Diffstat (limited to 'dbaccess/source/ui/dlg/advancedsettings.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/advancedsettings.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbaccess/source/ui/dlg/advancedsettings.cxx b/dbaccess/source/ui/dlg/advancedsettings.cxx index dadbb5c467fb..d21a590507fa 100644 --- a/dbaccess/source/ui/dlg/advancedsettings.cxx +++ b/dbaccess/source/ui/dlg/advancedsettings.cxx @@ -223,13 +223,13 @@ namespace dbaui aValue.reset(); SFX_ITEMSET_GET( _rSet, pItem, SfxPoolItem, setting->nItemId, true ); - if ( pItem->ISA( SfxBoolItem ) ) + if (const SfxBoolItem *pBoolItem = PTR_CAST(SfxBoolItem, pItem)) { - aValue.reset( PTR_CAST( SfxBoolItem, pItem )->GetValue() ); + aValue.reset( pBoolItem->GetValue() ); } - else if ( pItem->ISA( OptionalBoolItem ) ) + else if (const OptionalBoolItem *pOptionalItem = PTR_CAST(OptionalBoolItem, pItem)) { - aValue = PTR_CAST( OptionalBoolItem, pItem )->GetFullValue(); + aValue = pOptionalItem->GetFullValue(); } else OSL_FAIL( "SpecialSettingsPage::implInitControls: unknown boolean item type!" ); |