summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-26 13:15:08 +0200
committerNoel Grandin <noel@peralex.com>2014-09-29 12:50:35 +0200
commitc353caee1c86476d98cd483f963f63c4195975f4 (patch)
tree861ed6bf7d859115980928658a07469699020443 /sot
parent07ca074e425ea381b9de1e7298be11678d3f6b38 (diff)
loplugin: cstylecast
Change-Id: I53b69a488c70769cbb841db519bc28fd211dc087
Diffstat (limited to 'sot')
-rw-r--r--sot/source/base/filelist.cxx2
-rw-r--r--sot/source/sdstor/stg.cxx2
-rw-r--r--sot/source/sdstor/stgdir.hxx4
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