summaryrefslogtreecommitdiff
path: root/starmath/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-02 15:33:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-03 07:54:27 +0100
commit5da6c31a76a95a19bd15ebdb0d1321b7d1240cc7 (patch)
treeebcb8eeeb54defa839ee82d97d3a17602639c1b9 /starmath/inc
parent6299c8cae923198c55d47320fa8a89bbcd5b0f2b (diff)
loplugin:finalclasses
Change-Id: I10ff73f89c965beb3cfb5fc3a40dd959d8f77aaa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124600 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r--starmath/inc/mathml/element.hxx4
-rw-r--r--starmath/inc/mathml/import.hxx2
-rw-r--r--starmath/inc/mathml/mathmlimport.hxx2
-rw-r--r--starmath/inc/parse5.hxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/starmath/inc/mathml/element.hxx b/starmath/inc/mathml/element.hxx
index 8f510f57a72b..901e0021daa3 100644
--- a/starmath/inc/mathml/element.hxx
+++ b/starmath/inc/mathml/element.hxx
@@ -15,7 +15,7 @@
#include <editeng/editdata.hxx>
-class SmMlElement : public SmRect
+class SmMlElement final : public SmRect
{
/* Technical stuff */
@@ -187,7 +187,7 @@ public: // attributes
*/
bool isAttributeSet(SmMlAttributeValueType aAttributeType) const;
-protected: // attributes
+private: // attributes
/**
* Gets a given attribute.
* If no available returns empty attribute.
diff --git a/starmath/inc/mathml/import.hxx b/starmath/inc/mathml/import.hxx
index 6266b5ede6c0..f14682bdfb8b 100644
--- a/starmath/inc/mathml/import.hxx
+++ b/starmath/inc/mathml/import.hxx
@@ -83,7 +83,7 @@ public:
css::uno::Reference<css::beans::XPropertySet> const& rPropSet);
};
-class SmMLImport : public SvXMLImport
+class SmMLImport final : public SvXMLImport
{
private:
SmMlElement* m_pElementTree = new SmMlElement(SmMlElementType::NMlEmpty);
diff --git a/starmath/inc/mathml/mathmlimport.hxx b/starmath/inc/mathml/mathmlimport.hxx
index 4e5444945f7e..0a963a1b01d3 100644
--- a/starmath/inc/mathml/mathmlimport.hxx
+++ b/starmath/inc/mathml/mathmlimport.hxx
@@ -70,7 +70,7 @@ public:
const char* pFilterName, bool bUseHTMLMLEntities);
};
-class SmXMLImport : public SvXMLImport
+class SmXMLImport final : public SvXMLImport
{
SmNodeStack aNodeStack;
bool bSuccess;
diff --git a/starmath/inc/parse5.hxx b/starmath/inc/parse5.hxx
index bfc09a139e5a..69528c403c0a 100644
--- a/starmath/inc/parse5.hxx
+++ b/starmath/inc/parse5.hxx
@@ -25,7 +25,7 @@
#include "parsebase.hxx"
-class SmParser5 : public AbstractSmParser
+class SmParser5 final : public AbstractSmParser
{
OUString m_aBufferString;
SmToken m_aCurToken;