loplugin:cstylecast: deal with remaining pointer casts

Change-Id: I1a3766bba2c157f20422d3ffb0c08f631b537724
This commit is contained in:
Stephan Bergmann
2015-06-08 16:26:57 +02:00
parent a3cebe2e4e
commit 430d760acd
2 changed files with 4 additions and 4 deletions

View File

@@ -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 );
}

View File

@@ -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 )
{