summaryrefslogtreecommitdiff
path: root/package/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-26 15:19:06 +0200
committerNoel Grandin <noel@peralex.com>2014-09-29 12:50:35 +0200
commit0ecf6afbd104b53836c7a4d45fbc2a6ce1e356e0 (patch)
treea1253c850347f9df39254fe9cf82b6ebf39d73f0 /package/source
parentc353caee1c86476d98cd483f963f63c4195975f4 (diff)
loplugin: cstylecast
Change-Id: Iea517d2287bded4a702c73dfdd1f182023425d67
Diffstat (limited to 'package/source')
-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;
}
}