From 0ecf6afbd104b53836c7a4d45fbc2a6ce1e356e0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 26 Sep 2014 15:19:06 +0200 Subject: loplugin: cstylecast Change-Id: Iea517d2287bded4a702c73dfdd1f182023425d67 --- package/source/xstor/owriteablestream.cxx | 8 ++++---- package/source/xstor/xstorage.cxx | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'package') 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( pIterator.next( ) )->preCommit( aSource ); break; case STOR_MESS_COMMITED: - ( ( embed::XTransactionListener* )pIterator.next( ) )->commited( aSource ); + static_cast( pIterator.next( ) )->commited( aSource ); break; case STOR_MESS_PREREVERT: - ( ( embed::XTransactionListener* )pIterator.next( ) )->preRevert( aSource ); + static_cast( 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( 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( pIterator.next( ) )->preCommit( aSource ); break; case STOR_MESS_COMMITED: - ( ( embed::XTransactionListener* )pIterator.next( ) )->commited( aSource ); + static_cast( pIterator.next( ) )->commited( aSource ); break; case STOR_MESS_PREREVERT: - ( ( embed::XTransactionListener* )pIterator.next( ) )->preRevert( aSource ); + static_cast( pIterator.next( ) )->preRevert( aSource ); break; case STOR_MESS_REVERTED: - ( ( embed::XTransactionListener* )pIterator.next( ) )->reverted( aSource ); + static_cast( pIterator.next( ) )->reverted( aSource ); break; } } -- cgit