From f903af07aab03f94e36a74936deef7f28d05a779 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 30 Oct 2019 09:42:08 +0200 Subject: [PATCH] loplugin:finalclasses tools Change-Id: I6577a0947acda837dd3f775b10fc09bac9fbb27e Reviewed-on: https://gerrit.libreoffice.org/81728 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/tools/ref.hxx | 2 +- include/tools/stream.hxx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx index 44e0f50c99d0..3f245bf08e1b 100644 --- a/include/tools/ref.hxx +++ b/include/tools/ref.hxx @@ -174,7 +174,7 @@ class SvCompatWeakBase; /** SvCompatWeakHdl acts as an intermediary between SvCompatWeakRef and T. */ template -class SvCompatWeakHdl : public SvRefBase +class SvCompatWeakHdl final : public SvRefBase { friend class SvCompatWeakBase; T* _pObj; diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx index b072970822f9..69679f7ef33e 100644 --- a/include/tools/stream.hxx +++ b/include/tools/stream.hxx @@ -568,7 +568,7 @@ inline std::size_t write_uInt16_lenPrefixed_uInt8s_FromOUString(SvStream& rStrm, // FileStream -class TOOLS_DLLPUBLIC SvFileStream : public SvStream +class TOOLS_DLLPUBLIC SvFileStream final : public SvStream { private: std::unique_ptr @@ -587,7 +587,6 @@ private: bool LockFile(); void UnlockFile(); -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;