diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-31 14:15:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-01 07:14:39 +0100 |
commit | ee1d6af9b73256e13975ec4e95aff6d69a00fed9 (patch) | |
tree | 3cbc356963562fe04829d49c37c38e8aeab84314 /package/inc | |
parent | 5d618d73ed8669a75b7b01774f6ea51e99e5b740 (diff) |
loplugin:finalclasses in package
Change-Id: I020ea1f3bea5c3deab05b9a2154102548c7622cf
Reviewed-on: https://gerrit.libreoffice.org/44132
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'package/inc')
-rw-r--r-- | package/inc/ByteChucker.hxx | 3 | ||||
-rw-r--r-- | package/inc/ByteGrabber.hxx | 3 | ||||
-rw-r--r-- | package/inc/CRC32.hxx | 3 | ||||
-rw-r--r-- | package/inc/ZipEnumeration.hxx | 3 | ||||
-rw-r--r-- | package/inc/ZipPackage.hxx | 3 | ||||
-rw-r--r-- | package/inc/ZipPackageBuffer.hxx | 3 |
6 files changed, 6 insertions, 12 deletions
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<comphelper::RefCountedMutex> 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 <com/sun/star/io/XInputStream.hpp> #include <cppuhelper/implbase.hxx> -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; |