diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-02 12:09:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-04 07:50:01 +0100 |
commit | 3dde9d988f0c9a432429389359c3531f10a4ff10 (patch) | |
tree | f6daed39591bf55907f44218fcac62f389322aa6 /package | |
parent | da90193c8c0ab1f5403d37902f0037b51659b6d9 (diff) |
loplugin:constparams in various(1)
Change-Id: Ic80ca59abc3e104c7adf0c1eff1d16addf48bc8b
Reviewed-on: https://gerrit.libreoffice.org/44261
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r-- | package/inc/ZipFile.hxx | 4 | ||||
-rw-r--r-- | package/source/zipapi/XUnbufferedStream.cxx | 2 | ||||
-rw-r--r-- | package/source/zipapi/XUnbufferedStream.hxx | 2 | ||||
-rw-r--r-- | package/source/zipapi/ZipFile.cxx | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/package/inc/ZipFile.hxx b/package/inc/ZipFile.hxx index f57a0fb30015..c5353b6c17d2 100644 --- a/package/inc/ZipFile.hxx +++ b/package/inc/ZipFile.hxx @@ -67,14 +67,14 @@ class ZipFile // aMediaType parameter is used only for raw stream header creation css::uno::Reference < css::io::XInputStream > createStreamForZipEntry( const rtl::Reference<comphelper::RefCountedMutex>& aMutexHolder, - ZipEntry & rEntry, + ZipEntry const & rEntry, const ::rtl::Reference < EncryptionData > &rData, sal_Int8 nStreamMode, bool bDecrypt, const bool bUseBufferedStream = true, const OUString& aMediaType = OUString() ); - bool hasValidPassword ( ZipEntry & rEntry, const rtl::Reference < EncryptionData > &rData ); + bool hasValidPassword ( ZipEntry const & rEntry, const rtl::Reference < EncryptionData > &rData ); bool checkSizeAndCRC( const ZipEntry& aEntry ); diff --git a/package/source/zipapi/XUnbufferedStream.cxx b/package/source/zipapi/XUnbufferedStream.cxx index b1e31f5ee2c9..1e219b698871 100644 --- a/package/source/zipapi/XUnbufferedStream.cxx +++ b/package/source/zipapi/XUnbufferedStream.cxx @@ -41,7 +41,7 @@ using com::sun::star::packages::zip::ZipIOException; XUnbufferedStream::XUnbufferedStream( const uno::Reference< uno::XComponentContext >& xContext, const rtl::Reference< comphelper::RefCountedMutex >& aMutexHolder, - ZipEntry & rEntry, + ZipEntry const & rEntry, Reference < XInputStream > const & xNewZipStream, const ::rtl::Reference< EncryptionData >& rData, sal_Int8 nStreamMode, diff --git a/package/source/zipapi/XUnbufferedStream.hxx b/package/source/zipapi/XUnbufferedStream.hxx index 47bb3ce583be..db1b58dfe9a8 100644 --- a/package/source/zipapi/XUnbufferedStream.hxx +++ b/package/source/zipapi/XUnbufferedStream.hxx @@ -65,7 +65,7 @@ public: XUnbufferedStream( const css::uno::Reference< css::uno::XComponentContext >& xContext, const rtl::Reference<comphelper::RefCountedMutex>& aMutexHolder, - ZipEntry & rEntry, + ZipEntry const & rEntry, css::uno::Reference < css::io::XInputStream > const & xNewZipStream, const ::rtl::Reference< EncryptionData >& rData, sal_Int8 nStreamMode, diff --git a/package/source/zipapi/ZipFile.cxx b/package/source/zipapi/ZipFile.cxx index 0b1fa46a3907..b7cdf7289d4c 100644 --- a/package/source/zipapi/ZipFile.cxx +++ b/package/source/zipapi/ZipFile.cxx @@ -491,7 +491,7 @@ bool ZipFile::StaticHasValidPassword( const uno::Reference< uno::XComponentConte return bRet; } -bool ZipFile::hasValidPassword ( ZipEntry & rEntry, const ::rtl::Reference< EncryptionData >& rData ) +bool ZipFile::hasValidPassword ( ZipEntry const & rEntry, const ::rtl::Reference< EncryptionData >& rData ) { ::osl::MutexGuard aGuard( m_aMutexHolder->GetMutex() ); @@ -605,7 +605,7 @@ public: uno::Reference< XInputStream > ZipFile::createStreamForZipEntry( const rtl::Reference< comphelper::RefCountedMutex >& aMutexHolder, - ZipEntry & rEntry, + ZipEntry const & rEntry, const ::rtl::Reference< EncryptionData > &rData, sal_Int8 nStreamMode, bool bIsEncrypted, |