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: ...@@ -34,7 +34,7 @@ public:
~CRC32(); ~CRC32();
/// @throws css::uno::RuntimeException /// @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 /// @throws css::uno::RuntimeException
void SAL_CALL updateSegment(const css::uno::Sequence< sal_Int8 > &b, sal_Int32 len); void SAL_CALL updateSegment(const css::uno::Sequence< sal_Int8 > &b, sal_Int32 len);
/// @throws css::uno::RuntimeException /// @throws css::uno::RuntimeException
......
...@@ -124,7 +124,7 @@ public: ...@@ -124,7 +124,7 @@ public:
const OUString& aMediaType, const OUString& aMediaType,
sal_Int8 * & pHeader ); sal_Int8 * & pHeader );
static bool StaticFillData ( ::rtl::Reference < BaseEncryptionData > & rData, static bool StaticFillData ( ::rtl::Reference < BaseEncryptionData > const & rData,
sal_Int32 &rEncAlgorithm, sal_Int32 &rEncAlgorithm,
sal_Int32 &rChecksumAlgorithm, sal_Int32 &rChecksumAlgorithm,
sal_Int32 &rDerivedKeySize, sal_Int32 &rDerivedKeySize,
......
...@@ -134,7 +134,7 @@ public: ...@@ -134,7 +134,7 @@ public:
const rtlRandomPool &rRandomPool ) override; const rtlRandomPool &rRandomPool ) override;
void setZipEntryOnLoading( const ZipEntry &rInEntry); void setZipEntryOnLoading( const ZipEntry &rInEntry);
void successfullyWritten( ZipEntry *pEntry ); void successfullyWritten( ZipEntry const *pEntry );
static css::uno::Sequence < sal_Int8 > static_getImplementationId(); static css::uno::Sequence < sal_Int8 > static_getImplementationId();
......
...@@ -1624,7 +1624,7 @@ void OStorage_Impl::CreateRelStorage() ...@@ -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 // this method should be used only in OStorage_Impl::Commit() method
......
...@@ -259,7 +259,7 @@ struct OStorage_Impl ...@@ -259,7 +259,7 @@ struct OStorage_Impl
void RemoveStreamRelInfo( const OUString& aOriginalName ); void RemoveStreamRelInfo( const OUString& aOriginalName );
void CreateRelStorage(); void CreateRelStorage();
void CommitStreamRelInfo( SotElement_Impl* pStreamElement ); void CommitStreamRelInfo( SotElement_Impl const * pStreamElement );
css::uno::Reference< css::io::XInputStream > GetRelInfoStreamForName( const OUString& aName ); css::uno::Reference< css::io::XInputStream > GetRelInfoStreamForName( const OUString& aName );
void CommitRelInfo( const css::uno::Reference< css::container::XNameContainer >& xNewPackageFolder ); void CommitRelInfo( const css::uno::Reference< css::container::XNameContainer >& xNewPackageFolder );
......
...@@ -56,7 +56,7 @@ void SAL_CALL CRC32::update(const Sequence< sal_Int8 > &b) ...@@ -56,7 +56,7 @@ void SAL_CALL CRC32::update(const Sequence< sal_Int8 > &b)
nCRC = rtl_crc32(nCRC, b.getConstArray(),b.getLength()); 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_Int32 nLength;
sal_Int64 nTotal = 0; sal_Int64 nTotal = 0;
......
...@@ -295,7 +295,7 @@ void ZipFile::StaticFillHeader( const ::rtl::Reference< EncryptionData >& rData, ...@@ -295,7 +295,7 @@ void ZipFile::StaticFillHeader( const ::rtl::Reference< EncryptionData >& rData,
pHeader += nMediaTypeLength; pHeader += nMediaTypeLength;
} }
bool ZipFile::StaticFillData ( ::rtl::Reference< BaseEncryptionData > & rData, bool ZipFile::StaticFillData ( ::rtl::Reference< BaseEncryptionData > const & rData,
sal_Int32 &rEncAlg, sal_Int32 &rEncAlg,
sal_Int32 &rChecksumAlg, sal_Int32 &rChecksumAlg,
sal_Int32 &rDerivedKeySize, sal_Int32 &rDerivedKeySize,
......
...@@ -485,7 +485,7 @@ private: ...@@ -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 // 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 // don't allow data descriptors for STORED streams, meaning we have to
...@@ -883,7 +883,7 @@ bool ZipPackageStream::saveChild( ...@@ -883,7 +883,7 @@ bool ZipPackageStream::saveChild(
return bSuccess; return bSuccess;
} }
void ZipPackageStream::successfullyWritten( ZipEntry *pEntry ) void ZipPackageStream::successfullyWritten( ZipEntry const *pEntry )
{ {
if ( !IsPackageMember() ) 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