coverity#1325251 Unchecked dynamic_cast

Change-Id: I20495f27bc95f0f0e834cafbeae51e4e86c84b5b
This commit is contained in:
Caolán McNamara 2015-10-01 14:09:43 +01:00
parent 42f39d25c7
commit 792d507eec

View File

@ -1474,7 +1474,7 @@ void SfxAcceleratorConfigPage::Reset( const SfxItemSet* rSet )
const SfxPoolItem* pMacroItem=0;
if( SfxItemState::SET == rSet->GetItemState( SID_MACROINFO, true, &pMacroItem ) )
{
m_pMacroInfoItem = dynamic_cast<const SfxMacroInfoItem*>( pMacroItem );
m_pMacroInfoItem = &dynamic_cast<const SfxMacroInfoItem&>(*pMacroItem);
m_pGroupLBox->SelectMacro( m_pMacroInfoItem );
}
else