From ee1d6af9b73256e13975ec4e95aff6d69a00fed9 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 31 Oct 2017 14:15:25 +0200 Subject: loplugin:finalclasses in package Change-Id: I020ea1f3bea5c3deab05b9a2154102548c7622cf Reviewed-on: https://gerrit.libreoffice.org/44132 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- package/inc/ByteChucker.hxx | 3 +-- package/inc/ByteGrabber.hxx | 3 +-- package/inc/CRC32.hxx | 3 +-- package/inc/ZipEnumeration.hxx | 3 +-- package/inc/ZipPackage.hxx | 3 +-- package/inc/ZipPackageBuffer.hxx | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) (limited to 'package/inc') diff --git a/package/inc/ByteChucker.hxx b/package/inc/ByteChucker.hxx index 7e1b07c6680f..b3870c0c6163 100644 --- a/package/inc/ByteChucker.hxx +++ b/package/inc/ByteChucker.hxx @@ -30,9 +30,8 @@ namespace com { namespace sun { namespace star { namespace io { class XSeekable; class XOutputStream; } } } } -class ByteChucker +class ByteChucker final { -protected: css::uno::Reference < css::io::XOutputStream > xStream; css::uno::Reference < css::io::XSeekable > xSeek; css::uno::Sequence < sal_Int8 > a1Sequence, a2Sequence, a4Sequence; diff --git a/package/inc/ByteGrabber.hxx b/package/inc/ByteGrabber.hxx index 865e3486b489..60a8e1e9f0e5 100644 --- a/package/inc/ByteGrabber.hxx +++ b/package/inc/ByteGrabber.hxx @@ -32,9 +32,8 @@ namespace com { namespace sun { namespace star { namespace io { class XSeekable; class XInputStream; } } } } -class ByteGrabber +class ByteGrabber final { -protected: ::osl::Mutex m_aMutex; css::uno::Reference < css::io::XInputStream > xStream; diff --git a/package/inc/CRC32.hxx b/package/inc/CRC32.hxx index 854d11849b2a..778756475414 100644 --- a/package/inc/CRC32.hxx +++ b/package/inc/CRC32.hxx @@ -25,9 +25,8 @@ namespace com { namespace sun { namespace star { namespace io { class XInputStream; } } } } -class CRC32 +class CRC32 final { -protected: sal_uInt32 nCRC; public: CRC32(); diff --git a/package/inc/ZipEnumeration.hxx b/package/inc/ZipEnumeration.hxx index 0b6402a50c21..c84ae2ce2410 100644 --- a/package/inc/ZipEnumeration.hxx +++ b/package/inc/ZipEnumeration.hxx @@ -21,9 +21,8 @@ #include "HashMaps.hxx" -class ZipEnumeration +class ZipEnumeration final { -protected: EntryHash &rEntryHash; EntryHash::const_iterator aIterator; public: diff --git a/package/inc/ZipPackage.hxx b/package/inc/ZipPackage.hxx index f89dd57d7be4..61b0fc883575 100644 --- a/package/inc/ZipPackage.hxx +++ b/package/inc/ZipPackage.hxx @@ -57,7 +57,7 @@ enum InitialisationMode e_IMode_XStream }; -class ZipPackage : public cppu::WeakImplHelper +class ZipPackage final : public cppu::WeakImplHelper < css::lang::XInitialization, css::lang::XSingleServiceFactory, @@ -68,7 +68,6 @@ class ZipPackage : public cppu::WeakImplHelper css::beans::XPropertySet > { -protected: rtl::Reference m_aMutexHolder; css::uno::Sequence< css::beans::NamedValue > m_aStorageEncryptionKeys; diff --git a/package/inc/ZipPackageBuffer.hxx b/package/inc/ZipPackageBuffer.hxx index 8e902b35aa37..64a24563cb83 100644 --- a/package/inc/ZipPackageBuffer.hxx +++ b/package/inc/ZipPackageBuffer.hxx @@ -24,14 +24,13 @@ #include #include -class ZipPackageBuffer : public ::cppu::WeakImplHelper +class ZipPackageBuffer final : public ::cppu::WeakImplHelper < css::io::XInputStream, css::io::XOutputStream, css::io::XSeekable > { -protected: css::uno::Sequence < sal_Int8 > m_aBuffer; sal_Int64 m_nBufferSize, m_nEnd, m_nCurrent; bool m_bMustInitBuffer; -- cgit