diff options
-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 ) { |