diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-17 15:02:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-18 09:12:57 +0200 |
commit | 4968b6484707cb40b70a3115084e19433d1fec7f (patch) | |
tree | 58c1926a62f4e7681076e1585e81b875b43cfb6b /sw/inc/paratr.hxx | |
parent | a3d89265e0be3f9ee8ae813e4aeaa90af1714348 (diff) |
loplugin:finalclasses in sw
Change-Id: I5f228e839e0d5a51ece868b55715b04f0affc28d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117397
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/paratr.hxx')
-rw-r--r-- | sw/inc/paratr.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/inc/paratr.hxx b/sw/inc/paratr.hxx index 241397937b17..c6848491f8e9 100644 --- a/sw/inc/paratr.hxx +++ b/sw/inc/paratr.hxx @@ -59,7 +59,7 @@ namespace sw { DropCaps. If it is not a Client, formatting uses the CharFormat of the paragraph. If the CharFormat is modified, this change is propagated to the paragraphs via the Modify of SwFormatDrop. */ -class SW_DLLPUBLIC SwFormatDrop: public SfxPoolItem, public SwClient +class SW_DLLPUBLIC SwFormatDrop final : public SfxPoolItem, public SwClient { sw::FormatDropDefiner* m_pDefinedIn; ///< TextNode or FormatColl that contains the CapDrops. sal_uInt16 m_nDistance; ///< Distance to beginning of text. @@ -78,7 +78,6 @@ private: // @@@ public copy ctor, but no copy assignment? SwFormatDrop & operator= (const SwFormatDrop &) = delete; -protected: virtual void SwClientNotify(const SwModify&, const SfxHint&) override { if (!m_pDefinedIn) @@ -122,7 +121,7 @@ public: { m_pDefinedIn = const_cast<sw::FormatDropDefiner*>(pDefiner); }; }; -class SwRegisterItem : public SfxBoolItem +class SwRegisterItem final : public SfxBoolItem { public: static SfxPoolItem* CreateDefault(); @@ -142,7 +141,7 @@ inline SwRegisterItem::SwRegisterItem( const bool bRegister ) : SfxBoolItem( RES_PARATR_REGISTER, bRegister ) {} -class SW_DLLPUBLIC SwNumRuleItem : public SfxStringItem +class SW_DLLPUBLIC SwNumRuleItem final : public SfxStringItem { public: static SfxPoolItem* CreateDefault(); @@ -170,7 +169,7 @@ public: void dumpAsXml(xmlTextWriterPtr pWriter) const override; }; -class SwParaConnectBorderItem : public SfxBoolItem +class SwParaConnectBorderItem final : public SfxBoolItem { public: |