summaryrefslogtreecommitdiff
path: root/sfx2/source/doc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:27:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:27:56 +0200
commit42590fd2aa73c77c07b62ef1dcc823e17f6bb1e9 (patch)
tree29e934130119fd2b763a434f06cdf1e72b3193b1 /sfx2/source/doc
parent7c874dede68a2bad917961f7d345401bbc6b5c34 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: Idc749cf79afe1f6612f5f44a9c44aae853f78275
Diffstat (limited to 'sfx2/source/doc')
-rw-r--r--sfx2/source/doc/sfxbasemodel.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx
index 07d2805ed706..f28a43b75056 100644
--- a/sfx2/source/doc/sfxbasemodel.cxx
+++ b/sfx2/source/doc/sfxbasemodel.cxx
@@ -772,7 +772,7 @@ void SAL_CALL SfxBaseModel::dispose() throw(RuntimeException, std::exception)
m_pData->m_pDocumentUndoManager = NULL;
}
- lang::EventObject aEvent( (frame::XModel *)this );
+ lang::EventObject aEvent( static_cast<frame::XModel *>(this) );
m_pData->m_aInterfaceContainer.disposeAndClear( aEvent );
m_pData->m_xDocumentProperties.clear();
@@ -2850,7 +2850,7 @@ void SfxBaseModel::NotifyModifyListeners_Impl() const
::cppu::OInterfaceContainerHelper* pIC = m_pData->m_aInterfaceContainer.getContainer( cppu::UnoType<util::XModifyListener>::get());
if ( pIC )
{
- lang::EventObject aEvent( (frame::XModel *)this );
+ lang::EventObject aEvent( static_cast<frame::XModel *>(const_cast<SfxBaseModel *>(this)) );
pIC->notifyEach( &util::XModifyListener::modified, aEvent );
}
@@ -2876,7 +2876,7 @@ void SfxBaseModel::changing()
SfxObjectShell* SfxBaseModel::GetObjectShell() const
{
- return m_pData ? (SfxObjectShell*) m_pData->m_pObjectShell : 0;
+ return m_pData ? static_cast<SfxObjectShell*>(m_pData->m_pObjectShell) : 0;
}
@@ -3181,7 +3181,7 @@ void SfxBaseModel::postEvent_Impl( const OUString& aName, const Reference< frame
{
SAL_INFO("sfx.doc", "SfxDocumentEvent: " + aName);
- document::DocumentEvent aDocumentEvent( (frame::XModel*)this, aName, xController, Any() );
+ document::DocumentEvent aDocumentEvent( static_cast<frame::XModel*>(this), aName, xController, Any() );
pIC->forEach< document::XDocumentEventListener, NotifySingleListenerIgnoreRE< document::XDocumentEventListener, document::DocumentEvent > >(
NotifySingleListenerIgnoreRE< document::XDocumentEventListener, document::DocumentEvent >(
@@ -3194,7 +3194,7 @@ void SfxBaseModel::postEvent_Impl( const OUString& aName, const Reference< frame
{
SAL_INFO("sfx.doc", "SfxEvent: " + aName);
- document::EventObject aEvent( (frame::XModel*)this, aName );
+ document::EventObject aEvent( static_cast<frame::XModel*>(this), aName );
pIC->forEach< document::XEventListener, NotifySingleListenerIgnoreRE< document::XEventListener, document::EventObject > >(
NotifySingleListenerIgnoreRE< document::XEventListener, document::EventObject >(