coverity#704649 Unchecked dynamic_cast
Change-Id: Ibeb096d98cba7a55d9d806802473660d30000924
This commit is contained in:
@@ -349,10 +349,10 @@ MenuToolbarController::createPopupWindow() throw (::com::sun::star::uno::Runtime
|
||||
Reference< XURLTransformer > xURLTransformer = URLTransformer::create( m_xContext );
|
||||
pMenu = new Toolbarmenu();
|
||||
m_xMenuManager.set( new MenuBarManager( m_xContext, m_xFrame, xURLTransformer, xDispatch, m_aModuleIdentifier, pMenu, true, true ) );
|
||||
if ( m_xMenuManager.is() )
|
||||
if (m_xMenuManager.is())
|
||||
{
|
||||
MenuBarManager* pMgr = dynamic_cast< MenuBarManager* >( m_xMenuManager.get() );
|
||||
pMgr->SetItemContainer( m_xMenuDesc );
|
||||
MenuBarManager& rMgr = dynamic_cast<MenuBarManager&>(*m_xMenuManager.get());
|
||||
rMgr.SetItemContainer(m_xMenuDesc);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user