diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-21 14:52:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-21 20:02:19 +0200 |
commit | 1549a6be37f5b054c276d85c45b3fcf6a5214c20 (patch) | |
tree | 020e7211eec899ae2f9c86c9e4523d9da658f27c /sc | |
parent | 7d188fe4639717df47e2ff72d8c1295e23862ef9 (diff) |
loplugin:finalclasses in sc/inc
Change-Id: I818a5dda788fd15a718914fb05f23e5225dce1c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117588
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/afmtuno.hxx | 4 | ||||
-rw-r--r-- | sc/inc/cellsuno.hxx | 3 | ||||
-rw-r--r-- | sc/inc/chartuno.hxx | 3 | ||||
-rw-r--r-- | sc/inc/chgtrack.hxx | 6 | ||||
-rw-r--r-- | sc/inc/compiler.hxx | 2 | ||||
-rw-r--r-- | sc/inc/dapiuno.hxx | 6 | ||||
-rw-r--r-- | sc/inc/datauno.hxx | 4 | ||||
-rw-r--r-- | sc/inc/dptabsrc.hxx | 16 | ||||
-rw-r--r-- | sc/inc/fmtuno.hxx | 2 | ||||
-rw-r--r-- | sc/inc/formulacell.hxx | 2 | ||||
-rw-r--r-- | sc/inc/queryparam.hxx | 2 | ||||
-rw-r--r-- | sc/inc/styleuno.hxx | 4 | ||||
-rw-r--r-- | sc/inc/textuno.hxx | 2 | ||||
-rw-r--r-- | sc/inc/userdat.hxx | 4 |
14 files changed, 29 insertions, 31 deletions
diff --git a/sc/inc/afmtuno.hxx b/sc/inc/afmtuno.hxx index 466ebeceada3..250dbb242936 100644 --- a/sc/inc/afmtuno.hxx +++ b/sc/inc/afmtuno.hxx @@ -83,7 +83,7 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; -class ScAutoFormatObj : public ::cppu::WeakImplHelper< +class ScAutoFormatObj final : public ::cppu::WeakImplHelper< css::container::XIndexAccess, css::container::XEnumerationAccess, css::container::XNamed, @@ -150,7 +150,7 @@ public: UNO3_GETIMPLEMENTATION_DECL(ScAutoFormatObj) }; -class ScAutoFormatFieldObj : public ::cppu::WeakImplHelper< +class ScAutoFormatFieldObj final : public ::cppu::WeakImplHelper< css::beans::XPropertySet, css::lang::XServiceInfo > { diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index c5aa7579497b..8bfb3e296156 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -758,7 +758,7 @@ public: virtual sal_Int16 SAL_CALL resetActionLocks() override; }; -class SAL_DLLPUBLIC_RTTI ScTableSheetObj : public ScCellRangeObj, +class SC_DLLPUBLIC ScTableSheetObj final : public ScCellRangeObj, public css::sheet::XSpreadsheet, public css::container::XNamed, public css::sheet::XSheetPageBreak, @@ -787,7 +787,6 @@ private: SCTAB GetTab_Impl() const; void PrintAreaUndo_Impl( std::unique_ptr<ScPrintRangeSaver> pOldRanges ); -protected: virtual const SfxItemPropertyMap& GetItemPropertyMap() override; virtual void GetOnePropertyValue( const SfxItemPropertyMapEntry* pEntry, css::uno::Any& ) override; diff --git a/sc/inc/chartuno.hxx b/sc/inc/chartuno.hxx index 5937ce92e256..63b121b8dfc1 100644 --- a/sc/inc/chartuno.hxx +++ b/sc/inc/chartuno.hxx @@ -97,7 +97,7 @@ typedef ::cppu::WeakComponentImplHelper< typedef ::comphelper::OPropertyContainer ScChartObj_PBase; typedef ::comphelper::OPropertyArrayUsageHelper< ScChartObj > ScChartObj_PABase; -class ScChartObj : public ::cppu::BaseMutex +class ScChartObj final : public ::cppu::BaseMutex ,public ScChartObj_Base ,public ScChartObj_PBase ,public ScChartObj_PABase @@ -111,7 +111,6 @@ private: void Update_Impl( const ScRangeListRef& rRanges, bool bColHeaders, bool bRowHeaders ); void GetData_Impl( ScRangeListRef& rRanges, bool& rColHeaders, bool& rRowHeaders ) const; -protected: // ::comphelper::OPropertySetHelper virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() override; virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const css::uno::Any& rValue ) override; diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx index 6ddbe90f2e67..93df1ccdd4a7 100644 --- a/sc/inc/chgtrack.hxx +++ b/sc/inc/chgtrack.hxx @@ -363,7 +363,7 @@ public: }; // ScChangeActionIns -class SAL_DLLPUBLIC_RTTI ScChangeActionIns : public ScChangeAction +class SAL_DLLPUBLIC_RTTI ScChangeActionIns final : public ScChangeAction { friend class ScChangeTrack; @@ -597,7 +597,7 @@ enum ScChangeActionContentCellType SC_CACCT_MATREF }; -class SAL_DLLPUBLIC_RTTI ScChangeActionContent : public ScChangeAction +class SAL_DLLPUBLIC_RTTI ScChangeActionContent final : public ScChangeAction { friend class ScChangeTrack; @@ -817,7 +817,7 @@ enum ScChangeTrackMergeState // and are decremented, to keep values in a table separated from "normal" actions. #define SC_CHGTRACK_GENERATED_START (sal_uInt32(0xfffffff0)) -class SAL_DLLPUBLIC_RTTI ScChangeTrack : public utl::ConfigurationListener +class SAL_DLLPUBLIC_RTTI ScChangeTrack final : public utl::ConfigurationListener { friend void ScChangeAction::RejectRestoreContents( ScChangeTrack*, SCCOL, SCROW ); friend bool ScChangeActionDel::Reject( ScDocument& pDoc ); diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index 4eadf561eacf..d8935c7f7545 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -172,7 +172,7 @@ public: formula::FormulaToken* CreateToken(ScSheetLimits& rLimits) const; // create typified token }; -class SC_DLLPUBLIC ScCompiler : public formula::FormulaCompiler +class SC_DLLPUBLIC ScCompiler final : public formula::FormulaCompiler { public: diff --git a/sc/inc/dapiuno.hxx b/sc/inc/dapiuno.hxx index fe329213e2e5..ac68a31e88f0 100644 --- a/sc/inc/dapiuno.hxx +++ b/sc/inc/dapiuno.hxx @@ -225,7 +225,7 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; -class ScDataPilotTableObj : public ScDataPilotDescriptorBase, +class ScDataPilotTableObj final : public ScDataPilotDescriptorBase, public css::sheet::XDataPilotTable2, public css::util::XModifyBroadcaster { @@ -391,7 +391,7 @@ typedef ::cppu::WeakImplHelper ScDataPilotFieldObjImpl; /** Implementation of a single DataPilot field. */ -class ScDataPilotFieldObj : public ScDataPilotChildObjBase, public ScDataPilotFieldObjImpl +class ScDataPilotFieldObj final : public ScDataPilotChildObjBase, public ScDataPilotFieldObjImpl { public: ScDataPilotFieldObj( @@ -679,7 +679,7 @@ typedef ::cppu::WeakImplHelper > ScDataPilotItemObjImpl; -class ScDataPilotItemObj : public ScDataPilotChildObjBase, public ScDataPilotItemObjImpl +class ScDataPilotItemObj final : public ScDataPilotChildObjBase, public ScDataPilotItemObjImpl { public: explicit ScDataPilotItemObj( diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx index 0eb3c8bbb245..0d692f51c61b 100644 --- a/sc/inc/datauno.hxx +++ b/sc/inc/datauno.hxx @@ -204,7 +204,7 @@ public: virtual void PutData( const ScSubTotalParam& rParam ) override; }; -class ScSubTotalFieldObj : public cppu::WeakImplHelper< +class ScSubTotalFieldObj final : public cppu::WeakImplHelper< css::sheet::XSubTotalField, css::lang::XServiceInfo > { @@ -390,7 +390,7 @@ public: virtual void PutData( const ScQueryParam& rParam ) override; }; -class ScDatabaseRangeObj : public cppu::WeakImplHelper< +class ScDatabaseRangeObj final : public cppu::WeakImplHelper< css::sheet::XDatabaseRange, css::util::XRefreshable, css::container::XNamed, diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx index 95e69d1c501a..4f7f1db572da 100644 --- a/sc/inc/dptabsrc.hxx +++ b/sc/inc/dptabsrc.hxx @@ -221,7 +221,7 @@ public: #endif }; -class ScDPDimensions : public cppu::WeakImplHelper< +class ScDPDimensions final : public cppu::WeakImplHelper< css::container::XNameAccess, css::lang::XServiceInfo > { @@ -255,7 +255,7 @@ public: ScDPDimension* getByIndex(tools::Long nIndex) const; }; -class ScDPDimension : public cppu::WeakImplHelper< +class ScDPDimension final : public cppu::WeakImplHelper< css::sheet::XHierarchiesSupplier, css::container::XNamed, css::util::XCloneable, @@ -339,7 +339,7 @@ public: const css::sheet::DataPilotFieldReference& GetReferenceValue() const { return aReferenceValue;} }; -class ScDPHierarchies : public cppu::WeakImplHelper< +class ScDPHierarchies final : public cppu::WeakImplHelper< css::container::XNameAccess, css::lang::XServiceInfo > { @@ -374,7 +374,7 @@ public: ScDPHierarchy* getByIndex(tools::Long nIndex) const; }; -class ScDPHierarchy : public cppu::WeakImplHelper< +class ScDPHierarchy final : public cppu::WeakImplHelper< css::sheet::XLevelsSupplier, css::container::XNamed, css::lang::XServiceInfo > @@ -405,7 +405,7 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; -class ScDPLevels : public cppu::WeakImplHelper< +class ScDPLevels final : public cppu::WeakImplHelper< css::container::XNameAccess, css::lang::XServiceInfo > { @@ -439,7 +439,7 @@ public: ScDPLevel* getByIndex(sal_Int32 nIndex) const; }; -class ScDPLevel : public cppu::WeakImplHelper< +class ScDPLevel final : public cppu::WeakImplHelper< css::sheet::XMembersSupplier, css::container::XNamed, css::sheet::XDataPilotMemberResults, @@ -543,7 +543,7 @@ public: // hash map from name to index in the member array, for fast name access typedef std::unordered_map< OUString, sal_Int32 > ScDPMembersHashMap; -class ScDPMembers : public cppu::WeakImplHelper< +class ScDPMembers final : public cppu::WeakImplHelper< css::sheet::XMembersAccess, css::lang::XServiceInfo > { @@ -591,7 +591,7 @@ private: css::uno::Sequence< OUString > getElementNames( bool bLocaleIndependent ) const; }; -class ScDPMember : public cppu::WeakImplHelper< +class ScDPMember final : public cppu::WeakImplHelper< css::container::XNamed, css::beans::XPropertySet, css::lang::XServiceInfo > diff --git a/sc/inc/fmtuno.hxx b/sc/inc/fmtuno.hxx index a558bd3575ec..d8d26fe0603c 100644 --- a/sc/inc/fmtuno.hxx +++ b/sc/inc/fmtuno.hxx @@ -116,7 +116,7 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; -class ScTableConditionalEntry : public cppu::WeakImplHelper< +class ScTableConditionalEntry final : public cppu::WeakImplHelper< css::sheet::XSheetCondition2, css::sheet::XSheetConditionalEntry, css::lang::XServiceInfo > diff --git a/sc/inc/formulacell.hxx b/sc/inc/formulacell.hxx index 002d5e7c2e29..19983961825d 100644 --- a/sc/inc/formulacell.hxx +++ b/sc/inc/formulacell.hxx @@ -105,7 +105,7 @@ enum class ScMatrixMode : sal_uInt8 { Reference = 2 // Remaining cells, via ocMatRef reference token }; -class SC_DLLPUBLIC ScFormulaCell : public SvtListener +class SC_DLLPUBLIC ScFormulaCell final : public SvtListener { private: ScFormulaCellGroupRef mxGroup; // Group of formulae we're part of diff --git a/sc/inc/queryparam.hxx b/sc/inc/queryparam.hxx index 437932f05752..e27399107f3f 100644 --- a/sc/inc/queryparam.hxx +++ b/sc/inc/queryparam.hxx @@ -184,7 +184,7 @@ private: DataType meType; }; -struct ScDBQueryParamInternal : public ScDBQueryParamBase, public ScQueryParamTable +struct ScDBQueryParamInternal final : public ScDBQueryParamBase, public ScQueryParamTable { ScDBQueryParamInternal(); virtual ~ScDBQueryParamInternal() override; diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index a4ded70ab6f2..8fdb9f94dbdb 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -98,7 +98,7 @@ private: const css::uno::Sequence< css::beans::PropertyValue>& aOptions ); }; -class ScStyleFamilyObj : public ::cppu::WeakImplHelper< +class ScStyleFamilyObj final : public ::cppu::WeakImplHelper< css::container::XNameContainer, css::container::XIndexAccess, css::beans::XPropertySet, @@ -155,7 +155,7 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; -class ScStyleObj : public ::cppu::WeakImplHelper< +class ScStyleObj final : public ::cppu::WeakImplHelper< css::style::XStyle, css::beans::XPropertySet, css::beans::XMultiPropertySet, diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx index f04892515209..bb37c431bc14 100644 --- a/sc/inc/textuno.hxx +++ b/sc/inc/textuno.hxx @@ -134,7 +134,7 @@ public: * * ScHeaderFooterTextObj changes the text in a ScHeaderFooterContentObj. */ -class ScHeaderFooterTextObj : public cppu::WeakImplHelper< +class ScHeaderFooterTextObj final : public cppu::WeakImplHelper< css::text::XText, css::text::XTextRangeMover, css::container::XEnumerationAccess, diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx index d6d2de5ee9d0..dc0dfeb844af 100644 --- a/sc/inc/userdat.hxx +++ b/sc/inc/userdat.hxx @@ -28,7 +28,7 @@ // SVX_IMAPINFO_ID = 2 #define SC_UD_MACRODATA 3 -class SC_DLLPUBLIC ScDrawObjData : public SdrObjUserData +class SC_DLLPUBLIC ScDrawObjData final : public SdrObjUserData { public: enum Type { CellNote, ValidationCircle, DetectiveArrow, DrawingObject }; @@ -65,7 +65,7 @@ private: tools::Rectangle maShapeRect; }; -class SAL_DLLPUBLIC_RTTI ScMacroInfo : public SdrObjUserData +class SAL_DLLPUBLIC_RTTI ScMacroInfo final : public SdrObjUserData { public: ScMacroInfo(); |