summaryrefslogtreecommitdiff
path: root/include/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-29 12:10:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-30 05:49:39 +0100
commit84ad5f840062b8a604c776ee86cedb3ba360f355 (patch)
treea623e18c53b2b508c010b0f086e7b8ada8640f3b /include/sot
parent436100ba320c1835eb6d5eeab838bbf669c3300a (diff)
loplugin:finalclasses sot..svl
Change-Id: I0814e98c82822752dd4410d595d35acb67d5a1d1 Reviewed-on: https://gerrit.libreoffice.org/81703 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sot')
-rw-r--r--include/sot/stg.hxx7
-rw-r--r--include/sot/storage.hxx4
2 files changed, 5 insertions, 6 deletions
diff --git a/include/sot/stg.hxx b/include/sot/stg.hxx
index 32bd476422f9..1d3dae861046 100644
--- a/include/sot/stg.hxx
+++ b/include/sot/stg.hxx
@@ -122,11 +122,11 @@ protected:
static bool ValidateMode_Impl( StreamMode, StgDirEntry const * p = nullptr );
};
-class StorageStream : public BaseStorageStream, public OLEStorageBase
+class StorageStream final : public BaseStorageStream, public OLEStorageBase
{
//friend class Storage;
sal_uLong nPos; // current position
-protected:
+
virtual ~StorageStream() override;
public:
StorageStream( StgIo*, StgDirEntry*, StreamMode );
@@ -146,13 +146,12 @@ public:
class UCBStorageStream;
-class SOT_DLLPUBLIC Storage : public BaseStorage, public OLEStorageBase
+class SOT_DLLPUBLIC Storage final : public BaseStorage, public OLEStorageBase
{
OUString aName;
bool bIsRoot;
void Init( bool bCreate );
Storage( StgIo*, StgDirEntry*, StreamMode );
-protected:
virtual ~Storage() override;
public:
Storage( const OUString &, StreamMode, bool bDirect );
diff --git a/include/sot/storage.hxx b/include/sot/storage.hxx
index bea06931d089..640a04b109ef 100644
--- a/include/sot/storage.hxx
+++ b/include/sot/storage.hxx
@@ -35,11 +35,11 @@ enum class SotClipboardFormatId : sal_uInt32;
class BaseStorageStream;
-class SOT_DLLPUBLIC SotStorageStream : virtual public SotObject, public SvStream
+class SOT_DLLPUBLIC SotStorageStream final : virtual public SotObject, public SvStream
{
friend class SotStorage;
BaseStorageStream * pOwnStm; // pointer to the own stream
-protected:
+
virtual std::size_t GetData(void* pData, std::size_t nSize) override;
virtual std::size_t PutData(const void* pData, std::size_t nSize) override;
virtual sal_uInt64 SeekPos(sal_uInt64 nPos) override;