Kaydet (Commit) 50985d9b authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in package

Change-Id: I78386422f90f860647c844666548cd63e630b9a7
Reviewed-on: https://gerrit.libreoffice.org/40125Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst b0210c34
......@@ -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
......
......@@ -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,
......
......@@ -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();
......
......@@ -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
......
......@@ -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 );
......
......@@ -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;
......
......@@ -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,
......
......@@ -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() )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment