summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-01-13 15:29:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-01-14 07:12:31 +0100
commite73b99b8dda36545116ac5b5f00c210642c2e3a6 (patch)
tree57ffb047763e23d90ccf979ddbe7fef5a7597923 /l10ntools
parent7ae61449ccbeaf6a0b2aa8e81aad394b18565943 (diff)
loplugin:finalclasses in i18npool..linguistic
Change-Id: Ib903fb2fdb4c4c25f73053065b828dade8b63785 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86687 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/inc/po.hxx2
-rw-r--r--l10ntools/inc/xmlparse.hxx4
-rw-r--r--l10ntools/inc/xrmmerge.hxx7
3 files changed, 6 insertions, 7 deletions
diff --git a/l10ntools/inc/po.hxx b/l10ntools/inc/po.hxx
index bbbf289cbec6..778d70fe6cc9 100644
--- a/l10ntools/inc/po.hxx
+++ b/l10ntools/inc/po.hxx
@@ -129,7 +129,7 @@ private:
public:
- class Exception : public std::exception { };
+ class Exception final : public std::exception { };
PoIfstream();
PoIfstream( const OString& rFileName );
diff --git a/l10ntools/inc/xmlparse.hxx b/l10ntools/inc/xmlparse.hxx
index 2b68055b1446..951d33b5d813 100644
--- a/l10ntools/inc/xmlparse.hxx
+++ b/l10ntools/inc/xmlparse.hxx
@@ -265,7 +265,7 @@ public:
/** Holds comments
*/
-class XMLComment : public XMLChildNode
+class XMLComment final : public XMLChildNode
{
private:
OString m_sComment;
@@ -288,7 +288,7 @@ public:
/** Holds additional file content like those for which no handler exists
*/
-class XMLDefault : public XMLChildNode
+class XMLDefault final : public XMLChildNode
{
private:
OString m_sDefault;
diff --git a/l10ntools/inc/xrmmerge.hxx b/l10ntools/inc/xrmmerge.hxx
index 7d55bcd89ac7..fd54f113b68b 100644
--- a/l10ntools/inc/xrmmerge.hxx
+++ b/l10ntools/inc/xrmmerge.hxx
@@ -70,13 +70,13 @@ public:
/// Export strings from *.xrm and description.xml files
-class XRMResExport : public XRMResParser
+class XRMResExport final : public XRMResParser
{
private:
std::unique_ptr<ResData> pResData;
OString sPath;
PoOfstream pOutputStream;
-protected:
+
void WorkOnDesc(
const OString &rOpenTag,
OString &rText
@@ -101,7 +101,7 @@ public:
/// Merge strings to *.xrm and description.xml files
-class XRMResMerge : public XRMResParser
+class XRMResMerge final : public XRMResParser
{
private:
std::unique_ptr<MergeDataFile> pMergeDataFile;
@@ -110,7 +110,6 @@ private:
std::ofstream pOutputStream;
std::vector<OString> aLanguages;
-protected:
void WorkOnDesc(
const OString &rOpenTag,
OString &rText