From c353caee1c86476d98cd483f963f63c4195975f4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 26 Sep 2014 13:15:08 +0200 Subject: loplugin: cstylecast Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087 --- sot/source/base/filelist.cxx | 2 +- sot/source/sdstor/stg.cxx | 2 +- sot/source/sdstor/stgdir.hxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sot') diff --git a/sot/source/base/filelist.cxx b/sot/source/base/filelist.cxx index 42113063819b..750658c56122 100644 --- a/sot/source/base/filelist.cxx +++ b/sot/source/base/filelist.cxx @@ -73,7 +73,7 @@ void FileList::Save( SvStream& rOStm ) void FileList::Assign( const SvDataCopyStream& rCopyStream ) { - *this = (const FileList&)rCopyStream; + *this = static_cast(rCopyStream); } /****************************************************************************** diff --git a/sot/source/sdstor/stg.cxx b/sot/source/sdstor/stg.cxx index 84219df91e69..551b00a3c156 100644 --- a/sot/source/sdstor/stg.cxx +++ b/sot/source/sdstor/stg.cxx @@ -827,7 +827,7 @@ bool Storage::MoveTo( const OUString& rElem, BaseStorage* pODest, const OUString Storage *pOther = PTR_CAST( Storage, pODest ); if( pOther && pIo == pOther->pIo && rElem == rNew ) { - Storage *p = (Storage*) pODest; + Storage *p = static_cast(pODest); Storage *pDest = p; // both storages are conventional storages, use implementation dependent code if( !pElem->IsContained( pDest->pEntry ) ) diff --git a/sot/source/sdstor/stgdir.hxx b/sot/source/sdstor/stgdir.hxx index 6ebea95c47f7..9cb9f25ed181 100644 --- a/sot/source/sdstor/stgdir.hxx +++ b/sot/source/sdstor/stgdir.hxx @@ -114,8 +114,8 @@ class StgIterator : public StgAvlIterator { public: StgIterator( StgDirEntry& rStg ) : StgAvlIterator( rStg.pDown ) {} - StgDirEntry* First() { return (StgDirEntry*) StgAvlIterator::First(); } - StgDirEntry* Next() { return (StgDirEntry*) StgAvlIterator::Next(); } + StgDirEntry* First() { return static_cast( StgAvlIterator::First() ); } + StgDirEntry* Next() { return static_cast( StgAvlIterator::Next() ); } }; #endif -- cgit