diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:25:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:25:25 +0200 |
commit | a1a5588b1b440836a6655ab0af5f854f3f5eb5ed (patch) | |
tree | bf96e680ee4b939a0a584d96140b2bf50e1776b6 /framework/source/uielement/macrosmenucontroller.cxx | |
parent | 648cf9a56dcb11d2674c48e77672cc124aad1bce (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I4a72a60d621c65e63310ef70b991f9c86f00494d
Diffstat (limited to 'framework/source/uielement/macrosmenucontroller.cxx')
-rw-r--r-- | framework/source/uielement/macrosmenucontroller.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/source/uielement/macrosmenucontroller.cxx b/framework/source/uielement/macrosmenucontroller.cxx index 9bcccc489c1a..cd0703fd40d5 100644 --- a/framework/source/uielement/macrosmenucontroller.cxx +++ b/framework/source/uielement/macrosmenucontroller.cxx @@ -96,7 +96,7 @@ void MacrosMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu >& rPo // XEventListener void SAL_CALL MacrosMenuController::disposing( const EventObject& ) throw ( RuntimeException, std::exception ) { - Reference< css::awt::XMenuListener > xHolder(( OWeakObject *)this, UNO_QUERY ); + Reference< css::awt::XMenuListener > xHolder(static_cast<OWeakObject *>(this), UNO_QUERY ); osl::MutexGuard aLock( m_aMutex ); OSL_TRACE("disposing"); @@ -106,7 +106,7 @@ void SAL_CALL MacrosMenuController::disposing( const EventObject& ) throw ( Runt if ( m_xPopupMenu.is() ) { - m_xPopupMenu->removeMenuListener( Reference< css::awt::XMenuListener >(( OWeakObject *)this, UNO_QUERY )); + m_xPopupMenu->removeMenuListener( Reference< css::awt::XMenuListener >(static_cast<OWeakObject *>(this), UNO_QUERY )); OSL_TRACE("removed listener"); } m_xPopupMenu.clear(); |