diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:26:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-08 16:26:57 +0200 |
commit | 430d760acd1694ff572adfe2e60f613d4e94d7a2 (patch) | |
tree | 66d4e3992664f257d6ab77e9491c6501cd5928bc /package | |
parent | a3cebe2e4e5b9883c3842fadea0085bd27a05a4c (diff) |
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I1a3766bba2c157f20422d3ffb0c08f631b537724
Diffstat (limited to 'package')
-rw-r--r-- | package/source/xstor/owriteablestream.cxx | 2 | ||||
-rw-r--r-- | package/source/xstor/xstorage.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx index b64e76f782d5..e3cdbf20f9dd 100644 --- a/package/source/xstor/owriteablestream.cxx +++ b/package/source/xstor/owriteablestream.cxx @@ -1857,7 +1857,7 @@ void OWriteStream::ModifyParentUnlockMutex_Impl( ::osl::ResettableMutexGuard& aG { if ( m_pImpl->m_pParent->HasModifiedListener() ) { - uno::Reference< util::XModifiable > xParentModif( (util::XModifiable*)(m_pImpl->m_pParent->m_pAntiImpl) ); + uno::Reference< util::XModifiable > xParentModif( static_cast<util::XModifiable*>(m_pImpl->m_pParent->m_pAntiImpl) ); aGuard.clear(); xParentModif->setModified( sal_True ); } diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx index 63158f6bd7f5..b722348b652b 100644 --- a/package/source/xstor/xstorage.cxx +++ b/package/source/xstor/xstorage.cxx @@ -1724,7 +1724,7 @@ void OStorage_Impl::CreateRelStorage() throw uno::RuntimeException( THROW_WHERE ); OStorage* pResultStorage = new OStorage( m_pRelStorElement->m_pStorage, false ); - m_xRelStorage = uno::Reference< embed::XStorage >( (embed::XStorage*) pResultStorage ); + m_xRelStorage = uno::Reference< embed::XStorage >( static_cast<embed::XStorage*>(pResultStorage) ); } } @@ -2578,7 +2578,7 @@ uno::Reference< embed::XStorage > SAL_CALL OStorage::openStorageElement( bool bReadOnlyWrap = ( ( nStorageMode & embed::ElementModes::WRITE ) != embed::ElementModes::WRITE ); OStorage* pResultStorage = new OStorage( pElement->m_pStorage, bReadOnlyWrap ); - xResult = uno::Reference< embed::XStorage >( (embed::XStorage*) pResultStorage ); + xResult = uno::Reference< embed::XStorage >( static_cast<embed::XStorage*>(pResultStorage) ); if ( bReadOnlyWrap ) { @@ -3951,7 +3951,7 @@ void SAL_CALL OStorage::commit() // when the storage is committed the parent is modified if ( m_pImpl->m_pParent && m_pImpl->m_pParent->m_pAntiImpl ) - xParentModif = (util::XModifiable*)m_pImpl->m_pParent->m_pAntiImpl; + xParentModif = static_cast<util::XModifiable*>(m_pImpl->m_pParent->m_pAntiImpl); } catch( const io::IOException& rIOException ) { |