summaryrefslogtreecommitdiffstats
path: root/package/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-31 14:15:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-01 07:14:39 +0100
commitee1d6af9b73256e13975ec4e95aff6d69a00fed9 (patch)
tree3cbc356963562fe04829d49c37c38e8aeab84314 /package/inc
parentloplugin:constantparam in basic,basctl (diff)
downloadcore-ee1d6af9b73256e13975ec4e95aff6d69a00fed9.tar.gz
core-ee1d6af9b73256e13975ec4e95aff6d69a00fed9.zip
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.hxx3
-rw-r--r--package/inc/ByteGrabber.hxx3
-rw-r--r--package/inc/CRC32.hxx3
-rw-r--r--package/inc/ZipEnumeration.hxx3
-rw-r--r--package/inc/ZipPackage.hxx3
-rw-r--r--package/inc/ZipPackageBuffer.hxx3
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;