diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:28:40 +0200 |
commit | bc2becdf1a12a1020584ee808c965e41f1837383 (patch) | |
tree | 9e49c55cf32ce8cbd5997a62f9be2250ced4669f /svx/source/form/fmshimp.cxx | |
parent | 95f03f49940f88ebd49a02e1d133cf83259eef47 (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I94b2fbbb00e9772b668128f31cf08115bdfb16b5
Diffstat (limited to 'svx/source/form/fmshimp.cxx')
-rw-r--r-- | svx/source/form/fmshimp.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index 574e935e23a9..0d0312ee0f54 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -768,11 +768,11 @@ void SAL_CALL FmXFormShell::disposing(const lang::EventObject& e) throw( Runtime Reference< runtime::XFormController > xFormController( m_xExternalViewController, UNO_QUERY ); OSL_ENSURE( xFormController.is(), "FmXFormShell::disposing: invalid external view controller!" ); if (xFormController.is()) - xFormController->removeActivateListener((XFormControllerListener*)this); + xFormController->removeActivateListener(static_cast<XFormControllerListener*>(this)); Reference< ::com::sun::star::lang::XComponent> xComp(m_xExternalViewController, UNO_QUERY); if (xComp.is()) - xComp->removeEventListener((XEventListener*)(XPropertyChangeListener*)this); + xComp->removeEventListener(static_cast<XEventListener*>(static_cast<XPropertyChangeListener*>(this))); m_xExternalViewController = NULL; m_xExternalDisplayedForm = NULL; @@ -1830,9 +1830,9 @@ void FmXFormShell::impl_switchActiveControllerListening( const bool _bListen ) return; if ( _bListen ) - xComp->addEventListener( (XFormControllerListener*)this ); + xComp->addEventListener( static_cast<XFormControllerListener*>(this) ); else - xComp->removeEventListener( (XFormControllerListener*)this ); + xComp->removeEventListener( static_cast<XFormControllerListener*>(this) ); } @@ -3195,7 +3195,7 @@ void FmXFormShell::CreateExternalView() m_xExternalViewController = xExternalViewFrame->getController(); Reference< ::com::sun::star::lang::XComponent> xComp(m_xExternalViewController, UNO_QUERY); if (xComp.is()) - xComp->addEventListener((XEventListener*)(XPropertyChangeListener*)this); + xComp->addEventListener(static_cast<XEventListener*>(static_cast<XPropertyChangeListener*>(this))); } } else @@ -3525,7 +3525,7 @@ void FmXFormShell::CreateExternalView() Reference< runtime::XFormController > xFormController( m_xExternalViewController, UNO_QUERY ); OSL_ENSURE( xFormController.is(), "FmXFormShell::CreateExternalView:: invalid external view controller!" ); if (xFormController.is()) - xFormController->addActivateListener((XFormControllerListener*)this); + xFormController->addActivateListener(static_cast<XFormControllerListener*>(this)); } } #ifdef DBG_UTIL |