summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-rw-r--r--package/source/xstor/owriteablestream.cxx8
-rw-r--r--package/source/xstor/xstorage.cxx10
2 files changed, 9 insertions, 9 deletions
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx
index 22e21d239cd2..e7a1d056e3f2 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -3276,16 +3276,16 @@ void OWriteStream::BroadcastTransaction( sal_Int8 nMessage )
switch( nMessage )
{
case STOR_MESS_PRECOMMIT:
- ( ( embed::XTransactionListener* )pIterator.next( ) )->preCommit( aSource );
+ static_cast<embed::XTransactionListener*>( pIterator.next( ) )->preCommit( aSource );
break;
case STOR_MESS_COMMITED:
- ( ( embed::XTransactionListener* )pIterator.next( ) )->commited( aSource );
+ static_cast<embed::XTransactionListener*>( pIterator.next( ) )->commited( aSource );
break;
case STOR_MESS_PREREVERT:
- ( ( embed::XTransactionListener* )pIterator.next( ) )->preRevert( aSource );
+ static_cast<embed::XTransactionListener*>( pIterator.next( ) )->preRevert( aSource );
break;
case STOR_MESS_REVERTED:
- ( ( embed::XTransactionListener* )pIterator.next( ) )->reverted( aSource );
+ static_cast< embed::XTransactionListener*>( pIterator.next( ) )->reverted( aSource );
break;
}
}
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index d19e9d2c7a9e..3ac32e987694 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -2075,7 +2075,7 @@ void OStorage::BroadcastModifiedIfNecessary()
::cppu::OInterfaceIteratorHelper pIterator( *pContainer );
while ( pIterator.hasMoreElements( ) )
{
- ( ( util::XModifyListener* )pIterator.next( ) )->modified( aSource );
+ static_cast<util::XModifyListener*>( pIterator.next( ) )->modified( aSource );
}
}
}
@@ -2112,16 +2112,16 @@ void OStorage::BroadcastTransaction( sal_Int8 nMessage )
switch( nMessage )
{
case STOR_MESS_PRECOMMIT:
- ( ( embed::XTransactionListener* )pIterator.next( ) )->preCommit( aSource );
+ static_cast<embed::XTransactionListener*>( pIterator.next( ) )->preCommit( aSource );
break;
case STOR_MESS_COMMITED:
- ( ( embed::XTransactionListener* )pIterator.next( ) )->commited( aSource );
+ static_cast<embed::XTransactionListener*>( pIterator.next( ) )->commited( aSource );
break;
case STOR_MESS_PREREVERT:
- ( ( embed::XTransactionListener* )pIterator.next( ) )->preRevert( aSource );
+ static_cast<embed::XTransactionListener*>( pIterator.next( ) )->preRevert( aSource );
break;
case STOR_MESS_REVERTED:
- ( ( embed::XTransactionListener* )pIterator.next( ) )->reverted( aSource );
+ static_cast<embed::XTransactionListener*>( pIterator.next( ) )->reverted( aSource );
break;
}
}