Kaydet (Commit) 97793989 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:redundantcast: redundant static_casts in framework

Change-Id: I3556fac0bd5100db44f389aeb9f64b635f3e0569
üst 52e92d56
......@@ -530,7 +530,7 @@ ImageManagerImpl::~ImageManagerImpl()
void ImageManagerImpl::dispose()
{
uno::Reference< uno::XInterface > xOwner(static_cast< OWeakObject* >(m_pOwner));
uno::Reference< uno::XInterface > xOwner(m_pOwner);
css::lang::EventObject aEvent( xOwner );
m_aListenerContainer.disposeAndClear( aEvent );
......@@ -822,7 +822,7 @@ throw (css::lang::IllegalArgumentException,
}
}
uno::Reference< uno::XInterface > xOwner(static_cast< OWeakObject* >(m_pOwner));
uno::Reference< uno::XInterface > xOwner(m_pOwner);
// Notify listeners
if ( pInsertedImages != nullptr )
{
......@@ -927,7 +927,7 @@ throw ( css::lang::IllegalArgumentException,
}
// Notify listeners
uno::Reference< uno::XInterface > xOwner(static_cast< OWeakObject* >(m_pOwner));
uno::Reference< uno::XInterface > xOwner(m_pOwner);
if ( pRemovedImages != nullptr )
{
ConfigurationEvent aRemoveEvent;
......@@ -1073,7 +1073,7 @@ void ImageManagerImpl::reload()
aGuard.clear();
// Now notify our listeners. Unlock mutex to prevent deadlocks
uno::Reference< uno::XInterface > xOwner(static_cast< OWeakObject* >(m_pOwner));
uno::Reference< uno::XInterface > xOwner(m_pOwner);
if ( pInsertedImages != nullptr )
{
ConfigurationEvent aInsertEvent;
......
......@@ -1570,7 +1570,7 @@ void MenuBarManager::FillMenuWithConfiguration(
MenuBarManager::FillMenu( nId, pMenu, rModuleIdentifier, rItemContainer, xEmptyDispatchProvider );
// Merge add-on menu entries into the menu bar
MenuBarManager::MergeAddonMenus( static_cast< Menu* >( pMenu ),
MenuBarManager::MergeAddonMenus( pMenu,
AddonsOptions().GetMergeMenuInstructions(),
rModuleIdentifier );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment