diff options
Diffstat (limited to 'sot/source')
-rw-r--r-- | sot/source/base/filelist.cxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/stg.cxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/stgdir.hxx | 4 |
3 files changed, 4 insertions, 4 deletions
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<const FileList&>(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<Storage*>(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<StgDirEntry*>( StgAvlIterator::First() ); } + StgDirEntry* Next() { return static_cast<StgDirEntry*>( StgAvlIterator::Next() ); } }; #endif |