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/node.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/node.hxx')
-rw-r--r-- | sw/inc/node.hxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx index 53e2a79d0068..6639aefb5f97 100644 --- a/sw/inc/node.hxx +++ b/sw/inc/node.hxx @@ -339,7 +339,7 @@ private: }; /// Ends a section of nodes in the document model. -class SwEndNode : public SwNode +class SwEndNode final : public SwNode { friend class SwNodes; friend class SwTableNode; ///< To enable creation of its EndNote. @@ -348,10 +348,8 @@ class SwEndNode : public SwNode /// for the initial StartNode SwEndNode( SwNodes& rNodes, sal_uLong nPos, SwStartNode& rSttNd ); -protected: SwEndNode( const SwNodeIndex &rWhere, SwStartNode& rSttNd ); -private: SwEndNode( const SwEndNode & rNode ) = delete; SwEndNode & operator= ( const SwEndNode & rNode ) = delete; }; @@ -488,11 +486,11 @@ private: // SwTableNode -class SW_DLLPUBLIC SwTableNode : public SwStartNode, public sw::BroadcastingModify +class SW_DLLPUBLIC SwTableNode final : public SwStartNode, public sw::BroadcastingModify { friend class SwNodes; std::unique_ptr<SwTable> m_pTable; -protected: + virtual ~SwTableNode() override; public: @@ -524,7 +522,7 @@ private: SwTableNode & operator= ( const SwTableNode & rNode ) = delete; }; -class SAL_DLLPUBLIC_RTTI SwSectionNode +class SAL_DLLPUBLIC_RTTI SwSectionNode final : public SwStartNode { friend class SwNodes; @@ -535,7 +533,6 @@ private: std::unique_ptr<SwSection> const m_pSection; -protected: virtual ~SwSectionNode() override; public: |