summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-18 11:16:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-18 13:26:39 +0200
commit50985d9b60cc03954bbae3dc931abb6aa18c4c78 (patch)
tree6c1c71db3109d21cba91e6c115a2facae1bbbe89 /package
parentb0210c34dcaa5fc44956078ffa1dfe734d379224 (diff)
loplugin:constparams in package
Change-Id: I78386422f90f860647c844666548cd63e630b9a7 Reviewed-on: https://gerrit.libreoffice.org/40125 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r--package/inc/CRC32.hxx2
-rw-r--r--package/inc/ZipFile.hxx2
-rw-r--r--package/inc/ZipPackageStream.hxx2
-rw-r--r--package/source/xstor/xstorage.cxx2
-rw-r--r--package/source/xstor/xstorage.hxx2
-rw-r--r--package/source/zipapi/CRC32.cxx2
-rw-r--r--package/source/zipapi/ZipFile.cxx2
-rw-r--r--package/source/zippackage/ZipPackageStream.cxx4
8 files changed, 9 insertions, 9 deletions
diff --git a/package/inc/CRC32.hxx b/package/inc/CRC32.hxx
index 4d616b3b04d7..854d11849b2a 100644
--- a/package/inc/CRC32.hxx
+++ b/package/inc/CRC32.hxx
@@ -34,7 +34,7 @@ public:
~CRC32();
/// @throws css::uno::RuntimeException
- sal_Int64 SAL_CALL updateStream (css::uno::Reference < css::io::XInputStream > & xStream);
+ sal_Int64 SAL_CALL updateStream (css::uno::Reference < css::io::XInputStream > const & xStream);
/// @throws css::uno::RuntimeException
void SAL_CALL updateSegment(const css::uno::Sequence< sal_Int8 > &b, sal_Int32 len);
/// @throws css::uno::RuntimeException
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx
index 54e6dc74f6b9..1ca47f43b19c 100644
--- a/package/inc/ZipFile.hxx
+++ b/package/inc/ZipFile.hxx
@@ -124,7 +124,7 @@ public:
const OUString& aMediaType,
sal_Int8 * & pHeader );
- static bool StaticFillData ( ::rtl::Reference < BaseEncryptionData > & rData,
+ static bool StaticFillData ( ::rtl::Reference < BaseEncryptionData > const & rData,
sal_Int32 &rEncAlgorithm,
sal_Int32 &rChecksumAlgorithm,
sal_Int32 &rDerivedKeySize,
diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx
index 2ae82d23c164..5930e300898b 100644
--- a/package/inc/ZipPackageStream.hxx
+++ b/package/inc/ZipPackageStream.hxx
@@ -134,7 +134,7 @@ public:
const rtlRandomPool &rRandomPool ) override;
void setZipEntryOnLoading( const ZipEntry &rInEntry);
- void successfullyWritten( ZipEntry *pEntry );
+ void successfullyWritten( ZipEntry const *pEntry );
static css::uno::Sequence < sal_Int8 > static_getImplementationId();
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index aa47f3d45726..9586bcbdc433 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -1624,7 +1624,7 @@ void OStorage_Impl::CreateRelStorage()
}
}
-void OStorage_Impl::CommitStreamRelInfo( SotElement_Impl* pStreamElement )
+void OStorage_Impl::CommitStreamRelInfo( SotElement_Impl const * pStreamElement )
{
// this method should be used only in OStorage_Impl::Commit() method
diff --git a/package/source/xstor/xstorage.hxx b/package/source/xstor/xstorage.hxx
index 50d2ac6d1f72..5bd4d654f7b9 100644
--- a/package/source/xstor/xstorage.hxx
+++ b/package/source/xstor/xstorage.hxx
@@ -259,7 +259,7 @@ struct OStorage_Impl
void RemoveStreamRelInfo( const OUString& aOriginalName );
void CreateRelStorage();
- void CommitStreamRelInfo( SotElement_Impl* pStreamElement );
+ void CommitStreamRelInfo( SotElement_Impl const * pStreamElement );
css::uno::Reference< css::io::XInputStream > GetRelInfoStreamForName( const OUString& aName );
void CommitRelInfo( const css::uno::Reference< css::container::XNameContainer >& xNewPackageFolder );
diff --git a/package/source/zipapi/CRC32.cxx b/package/source/zipapi/CRC32.cxx
index c121b220de0d..0476f663e916 100644
--- a/package/source/zipapi/CRC32.cxx
+++ b/package/source/zipapi/CRC32.cxx
@@ -56,7 +56,7 @@ void SAL_CALL CRC32::update(const Sequence< sal_Int8 > &b)
nCRC = rtl_crc32(nCRC, b.getConstArray(),b.getLength());
}
-sal_Int64 SAL_CALL CRC32::updateStream( Reference < XInputStream > & xStream )
+sal_Int64 SAL_CALL CRC32::updateStream( Reference < XInputStream > const & xStream )
{
sal_Int32 nLength;
sal_Int64 nTotal = 0;
diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx
index efad81b5fdf2..12c0c5ff86d1 100644
--- a/package/source/zipapi/ZipFile.cxx
+++ b/package/source/zipapi/ZipFile.cxx
@@ -295,7 +295,7 @@ void ZipFile::StaticFillHeader( const ::rtl::Reference< EncryptionData >& rData,
pHeader += nMediaTypeLength;
}
-bool ZipFile::StaticFillData ( ::rtl::Reference< BaseEncryptionData > & rData,
+bool ZipFile::StaticFillData ( ::rtl::Reference< BaseEncryptionData > const & rData,
sal_Int32 &rEncAlg,
sal_Int32 &rChecksumAlg,
sal_Int32 &rDerivedKeySize,
diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx
index dc3129c67ce7..a3893b8b908f 100644
--- a/package/source/zippackage/ZipPackageStream.cxx
+++ b/package/source/zippackage/ZipPackageStream.cxx
@@ -485,7 +485,7 @@ private:
}
};
-static void ImplSetStoredData( ZipEntry & rEntry, uno::Reference< io::XInputStream> & rStream )
+static void ImplSetStoredData( ZipEntry & rEntry, uno::Reference< io::XInputStream> const & rStream )
{
// It's very annoying that we have to do this, but lots of zip packages
// don't allow data descriptors for STORED streams, meaning we have to
@@ -883,7 +883,7 @@ bool ZipPackageStream::saveChild(
return bSuccess;
}
-void ZipPackageStream::successfullyWritten( ZipEntry *pEntry )
+void ZipPackageStream::successfullyWritten( ZipEntry const *pEntry )
{
if ( !IsPackageMember() )
{