diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-17 11:09:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-17 13:31:28 +0200 |
commit | 49bc18c0472b4c7758bfcbdf55383de9e9ef3027 (patch) | |
tree | 66eed1e82918cc122ad5e1e4a6cfa604c6633bb5 /sot | |
parent | 89805d2846298cfa7345aef2673666649a42773b (diff) |
loplugin:constparams in i18nutil,sot
Change-Id: I8e91b11baa855b1049130746b34f53158010948b
Reviewed-on: https://gerrit.libreoffice.org/40050
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r-- | sot/source/sdstor/stgavl.cxx | 6 | ||||
-rw-r--r-- | sot/source/sdstor/stgavl.hxx | 6 | ||||
-rw-r--r-- | sot/source/sdstor/stgcache.cxx | 4 | ||||
-rw-r--r-- | sot/source/sdstor/stgcache.hxx | 4 | ||||
-rw-r--r-- | sot/source/sdstor/stgstrms.cxx | 2 | ||||
-rw-r--r-- | sot/source/sdstor/ucbstorage.cxx | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/sot/source/sdstor/stgavl.cxx b/sot/source/sdstor/stgavl.cxx index ede2b9a26fad..3adb7b0dc5ed 100644 --- a/sot/source/sdstor/stgavl.cxx +++ b/sot/source/sdstor/stgavl.cxx @@ -33,7 +33,7 @@ StgAvlNode::~StgAvlNode() delete m_pRight; } -StgAvlNode* StgAvlNode::Find( StgAvlNode* pFind ) +StgAvlNode* StgAvlNode::Find( StgAvlNode const * pFind ) { if ( pFind ) { @@ -53,7 +53,7 @@ StgAvlNode* StgAvlNode::Find( StgAvlNode* pFind ) // +/0/- for >/=/< previous short StgAvlNode::Locate - ( StgAvlNode* pFind, + ( StgAvlNode const * pFind, StgAvlNode** pPivot, StgAvlNode **pParent, StgAvlNode** pPrev ) { short nRes = 0; @@ -89,7 +89,7 @@ short StgAvlNode::Locate // adjust balance factors in AVL tree from pivot down. // Returns delta balance. -short StgAvlNode::Adjust( StgAvlNode** pHeavy, StgAvlNode* pNew ) +short StgAvlNode::Adjust( StgAvlNode** pHeavy, StgAvlNode const * pNew ) { StgAvlNode* pCur = this; short nDelta; diff --git a/sot/source/sdstor/stgavl.hxx b/sot/source/sdstor/stgavl.hxx index b02edb02a0fe..831d75942910 100644 --- a/sot/source/sdstor/stgavl.hxx +++ b/sot/source/sdstor/stgavl.hxx @@ -27,8 +27,8 @@ class StgAvlNode { friend class StgAvlIterator; private: - short Locate( StgAvlNode*, StgAvlNode**, StgAvlNode**, StgAvlNode** ); - short Adjust( StgAvlNode**, StgAvlNode* ); + short Locate( StgAvlNode const *, StgAvlNode**, StgAvlNode**, StgAvlNode** ); + short Adjust( StgAvlNode**, StgAvlNode const * ); StgAvlNode* RotLL(); StgAvlNode* RotLR(); StgAvlNode* RotRR(); @@ -42,7 +42,7 @@ protected: StgAvlNode(); public: virtual ~StgAvlNode(); - StgAvlNode* Find( StgAvlNode* ); + StgAvlNode* Find( StgAvlNode const * ); static bool Insert( StgAvlNode**, StgAvlNode* ); static bool Remove( StgAvlNode**, StgAvlNode*, bool bDel ); virtual short Compare( const StgAvlNode* ) const = 0; diff --git a/sot/source/sdstor/stgcache.cxx b/sot/source/sdstor/stgcache.cxx index a4a42f0c6fcb..fb6cf1e40e75 100644 --- a/sot/source/sdstor/stgcache.cxx +++ b/sot/source/sdstor/stgcache.cxx @@ -353,7 +353,7 @@ bool StgCache::Read( sal_Int32 nPage, void* pBuf ) return Good(); } -bool StgCache::Write( sal_Int32 nPage, void* pBuf ) +bool StgCache::Write( sal_Int32 nPage, void const * pBuf ) { if( Good() ) { @@ -405,7 +405,7 @@ void StgCache::ResetError() m_pStrm->ResetError(); } -void StgCache::MoveError( StorageBase& r ) +void StgCache::MoveError( StorageBase const & r ) { if( m_nError != ERRCODE_NONE ) { diff --git a/sot/source/sdstor/stgcache.hxx b/sot/source/sdstor/stgcache.hxx index cf3b971580e8..c06e3848b363 100644 --- a/sot/source/sdstor/stgcache.hxx +++ b/sot/source/sdstor/stgcache.hxx @@ -74,13 +74,13 @@ public: void SetStrm( UCBStorageStream* ); bool Good() const { return m_nError == ERRCODE_NONE; } ErrCode GetError() { return m_nError; } - void MoveError( StorageBase& ); + void MoveError( StorageBase const & ); void SetError( ErrCode ); void ResetError(); bool Open( const OUString& rName, StreamMode ); void Close(); bool Read( sal_Int32 nPage, void* pBuf ); - bool Write( sal_Int32 nPage, void* pBuf ); + bool Write( sal_Int32 nPage, void const * pBuf ); // two routines for accessing FAT pages // Assume that the data is a FAT page and get/put FAT data. diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx index 5024ce53fcaf..4e957d3e9355 100644 --- a/sot/source/sdstor/stgstrms.cxx +++ b/sot/source/sdstor/stgstrms.cxx @@ -980,7 +980,7 @@ sal_Int32 StgDataStrm::Write( const void* pBuf, sal_Int32 n ) } else // do a direct (unbuffered) write - nRes = (short) m_rIo.Write( m_nPage, const_cast<void*>(p) ) * m_nPageSize; + nRes = (short) m_rIo.Write( m_nPage, p ) * m_nPageSize; } else { diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx index 33721f19804d..dab7b84e63e7 100644 --- a/sot/source/sdstor/ucbstorage.cxx +++ b/sot/source/sdstor/ucbstorage.cxx @@ -2412,7 +2412,7 @@ void UCBStorage::FillInfoList( SvStorageInfoList* pList ) const } } -bool UCBStorage::CopyStorageElement_Impl( UCBStorageElement_Impl& rElement, BaseStorage* pDest, const OUString& rNew ) const +bool UCBStorage::CopyStorageElement_Impl( UCBStorageElement_Impl const & rElement, BaseStorage* pDest, const OUString& rNew ) const { // insert stream or storage into the list or stream of the destination storage // not into the content, this will be done on commit ! |