From 792d507eecbc4cb0117c83098aac2e18c4c4e36e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 1 Oct 2015 14:09:43 +0100 Subject: [PATCH] coverity#1325251 Unchecked dynamic_cast Change-Id: I20495f27bc95f0f0e834cafbeae51e4e86c84b5b --- cui/source/customize/acccfg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( pMacroItem ); + m_pMacroInfoItem = &dynamic_cast(*pMacroItem); m_pGroupLBox->SelectMacro( m_pMacroInfoItem ); } else