diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-13 15:08:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-01-13 14:58:03 +0100 |
commit | c1e96a5d323614f1566702c933dcda9d89d23632 (patch) | |
tree | f1b7a64d415a09ba071623b1faff9f63e26457ac /package | |
parent | 029044bd5b5989e4b1a965f89e6ba79bf9717bc2 (diff) |
loplugin:finalclasses in package..sfx2
Change-Id: I2908abc13f16b0011fcb326e8405080cc30df74a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86684
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package')
-rw-r--r-- | package/inc/EncryptionData.hxx | 2 | ||||
-rw-r--r-- | package/inc/ZipOutputEntry.hxx | 6 | ||||
-rw-r--r-- | package/inc/ZipPackageStream.hxx | 2 | ||||
-rw-r--r-- | package/inc/zipfileaccess.hxx | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/package/inc/EncryptionData.hxx b/package/inc/EncryptionData.hxx index 66f8aeb5881a..0eae28d3422a 100644 --- a/package/inc/EncryptionData.hxx +++ b/package/inc/EncryptionData.hxx @@ -42,7 +42,7 @@ public: {} }; -class EncryptionData : public BaseEncryptionData +class EncryptionData final : public BaseEncryptionData { public: css::uno::Sequence < sal_Int8 > m_aKey; diff --git a/package/inc/ZipOutputEntry.hxx b/package/inc/ZipOutputEntry.hxx index 3bace59698b5..a8fbf1563c16 100644 --- a/package/inc/ZipOutputEntry.hxx +++ b/package/inc/ZipOutputEntry.hxx @@ -107,7 +107,7 @@ protected: }; // Class that runs the compression in a background thread. -class ZipOutputEntryInThread : public ZipOutputEntry +class ZipOutputEntryInThread final : public ZipOutputEntry { class Task; OUString m_aTempURL; @@ -135,7 +135,7 @@ private: }; // Class that synchronously runs the compression in multiple threads (using ThreadDeflater). -class ZipOutputEntryParallel : public ZipOutputEntryBase +class ZipOutputEntryParallel final : public ZipOutputEntryBase { sal_Int64 totalIn; sal_Int64 totalOut; @@ -145,7 +145,7 @@ public: const css::uno::Reference< css::uno::XComponentContext >& rxContext, ZipEntry& rEntry, ZipPackageStream* pStream, bool bEncrypt); void writeStream(const css::uno::Reference< css::io::XInputStream >& xInStream) override; -protected: +private: virtual void finishDeflater() override; virtual sal_Int64 getDeflaterTotalIn() const override; virtual sal_Int64 getDeflaterTotalOut() const override; diff --git a/package/inc/ZipPackageStream.hxx b/package/inc/ZipPackageStream.hxx index 7f704ca59232..f4f6d438c8d9 100644 --- a/package/inc/ZipPackageStream.hxx +++ b/package/inc/ZipPackageStream.hxx @@ -38,7 +38,7 @@ class ZipPackage; struct ZipEntry; -class ZipPackageStream : public cppu::ImplInheritanceHelper +class ZipPackageStream final : public cppu::ImplInheritanceHelper < ZipPackageEntry, css::io::XActiveDataSink, diff --git a/package/inc/zipfileaccess.hxx b/package/inc/zipfileaccess.hxx index 901ae060e436..2cd403d54545 100644 --- a/package/inc/zipfileaccess.hxx +++ b/package/inc/zipfileaccess.hxx @@ -37,7 +37,7 @@ #include <memory> -class OZipFileAccess : public ::cppu::WeakImplHelper< +class OZipFileAccess final : public ::cppu::WeakImplHelper< css::packages::zip::XZipFileAccess2, css::lang::XInitialization, css::lang::XComponent, |