summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-01 14:09:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-01 14:41:28 +0100
commit792d507eecbc4cb0117c83098aac2e18c4c4e36e (patch)
tree1402c8825a5a860d6197613cb17792fe08818769 /cui
parent42f39d25c75c289e15079f7b8815f5244e06550b (diff)
coverity#1325251 Unchecked dynamic_cast
Change-Id: I20495f27bc95f0f0e834cafbeae51e4e86c84b5b
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/acccfg.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx
index 89e0cc223fa3..49d564bc729c 100644
--- a/cui/source/customize/acccfg.cxx
+++ b/cui/source/customize/acccfg.cxx
@@ -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