[Libreoffice-commits] core.git: package/inc package/source

Noel Grandin noel.grandin at collabora.co.uk
Tue Jul 18 11:27:27 UTC 2017


 package/inc/CRC32.hxx                          |    2 +-
 package/inc/ZipFile.hxx                        |    2 +-
 package/inc/ZipPackageStream.hxx               |    2 +-
 package/source/xstor/xstorage.cxx              |    2 +-
 package/source/xstor/xstorage.hxx              |    2 +-
 package/source/zipapi/CRC32.cxx                |    2 +-
 package/source/zipapi/ZipFile.cxx              |    2 +-
 package/source/zippackage/ZipPackageStream.cxx |    4 ++--
 8 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 50985d9b60cc03954bbae3dc931abb6aa18c4c78
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Tue Jul 18 11:16:01 2017 +0200

    loplugin:constparams in package
    
    Change-Id: I78386422f90f860647c844666548cd63e630b9a7
    Reviewed-on: https://gerrit.libreoffice.org/40125
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

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() )
     {


More information about the Libreoffice-commits mailing list