summaryrefslogtreecommitdiff
path: root/sw/inc/expfld.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-11-04 10:23:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-11-04 10:29:24 +0100
commitdaa344f3e9683c16479ef5081fb03325af103c07 (patch)
tree9eaad4d46de6e6cbbbee9f2e0d911563cf5cd12d /sw/inc/expfld.hxx
parentfa7f07d23de31e5f1660a643d83ca8a2e565f69c (diff)
loplugin:finalclasses in sw/inc
Change-Id: I084502d8c5607f103ef987b54252ef95341f0bef Reviewed-on: https://gerrit.libreoffice.org/81981 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/expfld.hxx')
-rw-r--r--sw/inc/expfld.hxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx
index 01611c4aa8ea..e223e4fa3dd5 100644
--- a/sw/inc/expfld.hxx
+++ b/sw/inc/expfld.hxx
@@ -67,7 +67,7 @@ public:
void Clear() { maData.clear(); }
};
-class SAL_DLLPUBLIC_RTTI SwGetExpFieldType : public SwValueFieldType
+class SAL_DLLPUBLIC_RTTI SwGetExpFieldType final : public SwValueFieldType
{
public:
SwGetExpFieldType(SwDoc* pDoc);
@@ -75,11 +75,11 @@ public:
/** Overlay, because get-field cannot be changed and therefore
does not need to be updated. Update at changing of set-values! */
-protected:
+private:
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew ) override;
};
-class SW_DLLPUBLIC SwGetExpField : public SwFormulaField
+class SW_DLLPUBLIC SwGetExpField final : public SwFormulaField
{
double m_fValueRLHidden; ///< SwValueField; hidden redlines
OUString m_sExpand;
@@ -141,7 +141,7 @@ inline void SwGetExpField::ChgBodyTextFlag( bool bIsInBody )
class SwSetExpField;
-class SW_DLLPUBLIC SwSetExpFieldType : public SwValueFieldType
+class SW_DLLPUBLIC SwSetExpFieldType final : public SwValueFieldType
{
OUString const m_sName;
OUString m_sDelim;
@@ -149,7 +149,6 @@ class SW_DLLPUBLIC SwSetExpFieldType : public SwValueFieldType
sal_uInt8 m_nLevel;
bool m_bDeleted;
-protected:
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew ) override;
public:
@@ -268,7 +267,7 @@ inline bool SwSetExpField::GetInputFlag() const
inline bool SwSetExpField::IsSequenceField() const
{ return 0 != (nsSwGetSetExpType::GSE_SEQ & static_cast<SwSetExpFieldType*>(GetTyp())->GetType()); }
-class SAL_DLLPUBLIC_RTTI SwInputFieldType : public SwFieldType
+class SAL_DLLPUBLIC_RTTI SwInputFieldType final : public SwFieldType
{
SwDoc* const mpDoc;
public:
@@ -279,7 +278,7 @@ public:
SwDoc* GetDoc() const { return mpDoc; }
};
-class SW_DLLPUBLIC SwInputField : public SwField
+class SW_DLLPUBLIC SwInputField final : public SwField
{
mutable OUString maContent;
OUString maPText;
@@ -364,14 +363,14 @@ private:
};
/// Implementation in tblcalc.cxx.
-class SwTableFieldType : public SwValueFieldType
+class SwTableFieldType final : public SwValueFieldType
{
public:
SwTableFieldType(SwDoc* pDocPtr);
virtual std::unique_ptr<SwFieldType> Copy() const override;
};
-class SwTableField : public SwValueField, public SwTableFormula
+class SwTableField final : public SwValueField, public SwTableFormula
{
OUString m_sExpand;
sal_uInt16 m_nSubType;