From 3dde9d988f0c9a432429389359c3531f10a4ff10 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Nov 2017 12:09:52 +0200 Subject: loplugin:constparams in various(1) Change-Id: Ic80ca59abc3e104c7adf0c1eff1d16addf48bc8b Reviewed-on: https://gerrit.libreoffice.org/44261 Tested-by: Jenkins Reviewed-by: Noel Grandin --- package/inc/ZipFile.hxx | 4 ++-- package/source/zipapi/XUnbufferedStream.cxx | 2 +- package/source/zipapi/XUnbufferedStream.hxx | 2 +- package/source/zipapi/ZipFile.cxx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'package') 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& 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& 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, -- cgit