summaryrefslogtreecommitdiff
path: root/store
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-28 11:47:51 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-28 14:51:56 +0200
commitb09deb075319c1c19f91e3a6f64429b61682ebf8 (patch)
tree9e73d1e63092083a337a4ddf1dfe962b4f6ef4dc /store
parent587d6e13df7bb9c8f78ce605ebb8f8fd34b85a2c (diff)
loplugin:constparams handle constructors
had to change the structure of the plugin considerably, was too messy to structure it to do the calculations on a per-function basis Change-Id: I4edee7735f726101105c607368124a08dba21086 Reviewed-on: https://gerrit.libreoffice.org/40516 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'store')
-rw-r--r--store/source/lockbyte.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/store/source/lockbyte.cxx b/store/source/lockbyte.cxx
index 581a515c2c3b..e4fc18071e0b 100644
--- a/store/source/lockbyte.cxx
+++ b/store/source/lockbyte.cxx
@@ -306,7 +306,7 @@ class FileLockBytes :
public:
/** Construction.
*/
- explicit FileLockBytes (FileHandle & rFile);
+ explicit FileLockBytes (FileHandle const & rFile);
FileLockBytes(const FileLockBytes&) = delete;
FileLockBytes& operator=(const FileLockBytes&) = delete;
@@ -319,7 +319,7 @@ protected:
} // namespace store
-FileLockBytes::FileLockBytes (FileHandle & rFile)
+FileLockBytes::FileLockBytes (FileHandle const & rFile)
: m_hFile (rFile.m_handle), m_nSize (SAL_MAX_UINT32), m_xAllocator()
{
}
@@ -534,7 +534,7 @@ class MappedLockBytes :
public:
/** Construction.
*/
- explicit MappedLockBytes (FileMapping & rMapping);
+ explicit MappedLockBytes (FileMapping const & rMapping);
MappedLockBytes(const MappedLockBytes&) = delete;
MappedLockBytes& operator=(const MappedLockBytes&) = delete;
@@ -547,7 +547,7 @@ protected:
} // namespace store
-MappedLockBytes::MappedLockBytes (FileMapping & rMapping)
+MappedLockBytes::MappedLockBytes (FileMapping const & rMapping)
: m_pData (rMapping.m_pAddr), m_nSize (rMapping.m_nSize), m_nPageSize(0), m_hFile (rMapping.m_hFile)
{
}