coverity#1325251 Unchecked dynamic_cast
Change-Id: I20495f27bc95f0f0e834cafbeae51e4e86c84b5b
This commit is contained in:
@@ -1474,7 +1474,7 @@ void SfxAcceleratorConfigPage::Reset( const SfxItemSet* rSet )
|
|||||||
const SfxPoolItem* pMacroItem=0;
|
const SfxPoolItem* pMacroItem=0;
|
||||||
if( SfxItemState::SET == rSet->GetItemState( SID_MACROINFO, true, &pMacroItem ) )
|
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 );
|
m_pGroupLBox->SelectMacro( m_pMacroInfoItem );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user