summaryrefslogtreecommitdiff
path: root/comphelper
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
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')
-rw-r--r--comphelper/source/misc/accessibletexthelper.cxx2
-rw-r--r--comphelper/source/misc/backupfilehelper.cxx12
-rw-r--r--comphelper/source/misc/storagehelper.cxx8
3 files changed, 11 insertions, 11 deletions
diff --git a/comphelper/source/misc/accessibletexthelper.cxx b/comphelper/source/misc/accessibletexthelper.cxx
index 279cb995e238..1dcf2f669eeb 100644
--- a/comphelper/source/misc/accessibletexthelper.cxx
+++ b/comphelper/source/misc/accessibletexthelper.cxx
@@ -78,7 +78,7 @@ namespace comphelper
}
- bool OCommonAccessibleText::implIsValidBoundary( i18n::Boundary& rBoundary, sal_Int32 nLength )
+ bool OCommonAccessibleText::implIsValidBoundary( i18n::Boundary const & rBoundary, sal_Int32 nLength )
{
return ( rBoundary.startPos >= 0 ) && ( rBoundary.startPos < nLength ) && ( rBoundary.endPos >= 0 ) && ( rBoundary.endPos <= nLength );
}
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)
{
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx
index 7a1498891511..c4cc8178e298 100644
--- a/comphelper/source/misc/storagehelper.cxx
+++ b/comphelper/source/misc/storagehelper.cxx
@@ -495,7 +495,7 @@ static void splitPath( std::vector<OUString> &rElems,
static uno::Reference< embed::XStorage > LookupStorageAtPath(
const uno::Reference< embed::XStorage > &xParentStorage,
std::vector<OUString> &rElems, sal_uInt32 nOpenMode,
- LifecycleProxy &rNastiness )
+ LifecycleProxy const &rNastiness )
{
uno::Reference< embed::XStorage > xStorage( xParentStorage );
rNastiness.m_xBadness->push_back( xStorage );
@@ -510,7 +510,7 @@ static uno::Reference< embed::XStorage > LookupStorageAtPath(
uno::Reference< embed::XStorage > OStorageHelper::GetStorageAtPath(
const uno::Reference< embed::XStorage > &xStorage,
const OUString& rPath, sal_uInt32 nOpenMode,
- LifecycleProxy &rNastiness )
+ LifecycleProxy const &rNastiness )
{
std::vector<OUString> aElems;
splitPath( aElems, rPath );
@@ -520,7 +520,7 @@ uno::Reference< embed::XStorage > OStorageHelper::GetStorageAtPath(
uno::Reference< io::XStream > OStorageHelper::GetStreamAtPath(
const uno::Reference< embed::XStorage > &xParentStorage,
const OUString& rPath, sal_uInt32 nOpenMode,
- LifecycleProxy &rNastiness )
+ LifecycleProxy const &rNastiness )
{
std::vector<OUString> aElems;
splitPath( aElems, rPath );
@@ -536,7 +536,7 @@ uno::Reference< io::XStream > OStorageHelper::GetStreamAtPath(
uno::Reference< io::XStream > OStorageHelper::GetStreamAtPackageURL(
uno::Reference< embed::XStorage > const& xParentStorage,
const OUString& rURL, sal_uInt32 const nOpenMode,
- LifecycleProxy & rNastiness)
+ LifecycleProxy const & rNastiness)
{
OUString path;
if (rURL.startsWithIgnoreAsciiCase("vnd.sun.star.Package:", &path))