summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-15 14:28:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-15 18:58:17 +0200
commitafea504ad44f017f7020ed6dcc0191f7756acc93 (patch)
tree82ee390592c54f5167c53133d14edc50fa90719f /starmath
parentfbb9a98a78a349aef7b69d29a7534fd35ff1aa53 (diff)
loplugin:finalclasses
Change-Id: I88831f290e1923db6fb5a733746bfa3bc7fbc7e8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122148 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/document.hxx2
-rw-r--r--starmath/inc/smediteng.hxx2
-rw-r--r--starmath/inc/view.hxx8
3 files changed, 4 insertions, 8 deletions
diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 77d13aa77d08..772b66748fb4 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -73,7 +73,7 @@ public:
};
-class SM_DLLPUBLIC SmDocShell : public SfxObjectShell, public SfxListener
+class SM_DLLPUBLIC SmDocShell final : public SfxObjectShell, public SfxListener
{
friend class SmPrinterAccess;
friend class SmCursor;
diff --git a/starmath/inc/smediteng.hxx b/starmath/inc/smediteng.hxx
index 29902361b585..4e0b3162a811 100644
--- a/starmath/inc/smediteng.hxx
+++ b/starmath/inc/smediteng.hxx
@@ -11,7 +11,7 @@
#include <editeng/fontitem.hxx>
#include <unotools/lingucfg.hxx>
-class SmEditEngine : public EditEngine
+class SmEditEngine final : public EditEngine
{
public:
SmEditEngine(SfxItemPool* pItemPool);
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index e0a939478d2d..8d54cac903c5 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -181,7 +181,7 @@ public:
virtual void StateChangedAtToolBoxControl(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState) override;
};
-class SmCmdBoxWindow : public SfxDockingWindow
+class SmCmdBoxWindow final : public SfxDockingWindow
{
std::unique_ptr<SmEditWindow, o3tl::default_delete<SmEditWindow>> m_xEdit;
SmEditController aController;
@@ -191,8 +191,6 @@ class SmCmdBoxWindow : public SfxDockingWindow
DECL_LINK(InitialFocusTimerHdl, Timer *, void);
-protected:
-
virtual Size CalcDockingSize(SfxChildAlignment eAlign) override;
virtual SfxChildAlignment CheckAlignment(SfxChildAlignment eActual,
SfxChildAlignment eWish) override;
@@ -237,7 +235,7 @@ public:
namespace sfx2 { class FileDialogHelper; }
-class SmViewShell: public SfxViewShell
+class SmViewShell final : public SfxViewShell
{
std::unique_ptr<sfx2::DocumentInserter> mpDocInserter;
std::unique_ptr<SfxRequest> mpRequest;
@@ -254,8 +252,6 @@ class SmViewShell: public SfxViewShell
DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper*, void );
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
-protected:
-
static Size GetTextLineSize(OutputDevice const & rDevice,
const OUString& rLine);
static Size GetTextSize(OutputDevice const & rDevice,