summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/backupfilehelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-17 09:53:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-17 11:30:32 +0200
commitff8e463ab486ae863ab3a86ce957f01ed7f8af90 (patch)
treeedb0a69cea1e326fa457664c9594f3bf6735d470 /comphelper/source/misc/backupfilehelper.cxx
parentdf1d2d9d732e54a9596722b75e5117ed36cdc664 (diff)
loplugin:constparams in comphelper,unoidl
Change-Id: I411d431bd6620c594c5dafd42af6c2a8ac285f3f Reviewed-on: https://gerrit.libreoffice.org/40042 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper/source/misc/backupfilehelper.cxx')
-rw-r--r--comphelper/source/misc/backupfilehelper.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/comphelper/source/misc/backupfilehelper.cxx b/comphelper/source/misc/backupfilehelper.cxx
index 8d64ee3a3ca9..7f09fb4ef579 100644
--- a/comphelper/source/misc/backupfilehelper.cxx
+++ b/comphelper/source/misc/backupfilehelper.cxx
@@ -71,7 +71,7 @@ namespace
return aRetval;
}
- sal_uInt32 createCrc32(FileSharedPtr& rCandidate, sal_uInt32 nOffset)
+ sal_uInt32 createCrc32(FileSharedPtr const & rCandidate, sal_uInt32 nOffset)
{
sal_uInt32 nCrc32(0);
@@ -112,7 +112,7 @@ namespace
return nCrc32;
}
- bool read_sal_uInt32(FileSharedPtr& rFile, sal_uInt32& rTarget)
+ bool read_sal_uInt32(FileSharedPtr const & rFile, sal_uInt32& rTarget)
{
sal_uInt8 aArray[4];
sal_uInt64 nBaseRead(0);
@@ -141,7 +141,7 @@ namespace
return osl_File_E_None == osl_writeFile(rHandle, static_cast<const void*>(aArray), 4, &nBaseWritten) && 4 == nBaseWritten;
}
- bool read_OString(FileSharedPtr& rFile, OString& rTarget)
+ bool read_OString(FileSharedPtr const & rFile, OString& rTarget)
{
sal_uInt32 nLength(0);
@@ -474,7 +474,7 @@ namespace
}
}
- bool read_entry(FileSharedPtr& rFile)
+ bool read_entry(FileSharedPtr const & rFile)
{
// read maName
if (!read_OString(rFile, maName))
@@ -892,7 +892,7 @@ namespace
}
}
- bool read_entries(FileSharedPtr& rFile)
+ bool read_entries(FileSharedPtr const & rFile)
{
// read NumExtensionEntries
sal_uInt32 nExtEntries(0);
@@ -1249,7 +1249,7 @@ namespace
return mnCrc32;
}
- bool read_header(FileSharedPtr& rFile)
+ bool read_header(FileSharedPtr const & rFile)
{
if (!rFile)
{