diff options
Diffstat (limited to 'basctl/source/basicide/tbxctl.cxx')
-rw-r--r-- | basctl/source/basicide/tbxctl.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/basctl/source/basicide/tbxctl.cxx b/basctl/source/basicide/tbxctl.cxx index 171fa00f51c7..a80381b276de 100644 --- a/basctl/source/basicide/tbxctl.cxx +++ b/basctl/source/basicide/tbxctl.cxx @@ -67,12 +67,10 @@ void TbxControls::StateChanged( sal_uInt16 nSID, SfxItemState eState, { if( pState ) { - SfxAllEnumItem* pItem = PTR_CAST(SfxAllEnumItem, pState); - if( pItem ) + if (SfxAllEnumItem* pItem = dynamic_cast<SfxAllEnumItem*>(pState)) { - sal_uInt16 nLastEnum = pItem->GetValue(); sal_uInt16 nTemp = 0; - switch( nLastEnum ) + switch (sal_uInt16 nLastEnum = pItem->GetValue()) { case SVX_SNAP_PUSHBUTTON: nTemp = SID_INSERT_PUSHBUTTON; break; case SVX_SNAP_CHECKBOX: nTemp = SID_INSERT_CHECKBOX; break; |