summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-08 16:39:40 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-08 16:47:31 +0200
commit9779398983825093c5038670f2e7db5838f4857b (patch)
treed58656a039ca00ce31823ba060a79c541d99f164 /framework
parent52e92d5622e8d94051d48fa97cf36d7c47fc0589 (diff)
loplugin:redundantcast: redundant static_casts in framework
Change-Id: I3556fac0bd5100db44f389aeb9f64b635f3e0569
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uiconfiguration/imagemanagerimpl.cxx8
-rw-r--r--framework/source/uielement/menubarmanager.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/framework/source/uiconfiguration/imagemanagerimpl.cxx b/framework/source/uiconfiguration/imagemanagerimpl.cxx
index ec9bf0412ffb..d229de961a33 100644
--- a/framework/source/uiconfiguration/imagemanagerimpl.cxx
+++ b/framework/source/uiconfiguration/imagemanagerimpl.cxx
@@ -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;
diff --git a/framework/source/uielement/menubarmanager.cxx b/framework/source/uielement/menubarmanager.cxx
index 7125cbf1562b..d47fdbe045ea 100644
--- a/framework/source/uielement/menubarmanager.cxx
+++ b/framework/source/uielement/menubarmanager.cxx
@@ -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 );