loplugin:finalclasses

Change-Id: I62b094a3bd9a4f630cebdf538c04391e2920ff2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154064
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2023-07-05 16:06:46 +02:00
parent e55e64a7b7
commit 18446cdd60
14 changed files with 17 additions and 17 deletions

View File

@@ -326,7 +326,7 @@ private:
// a class implementing the comphelper::IPropertyInfoService // a class implementing the comphelper::IPropertyInfoService
class ConcreteInfoService : public ::comphelper::IPropertyInfoService class ConcreteInfoService final : public ::comphelper::IPropertyInfoService
{ {
public: public:
virtual ~ConcreteInfoService() {} virtual ~ConcreteInfoService() {}

View File

@@ -23,7 +23,7 @@
#include <vcl/weld.hxx> #include <vcl/weld.hxx>
/// Dialog for editing a name /// Dialog for editing a name
class CUI_DLLPUBLIC SvxNameDialog : public weld::GenericDialogController class CUI_DLLPUBLIC SvxNameDialog final : public weld::GenericDialogController
{ {
private: private:
std::unique_ptr<weld::Entry> m_xEdtName; std::unique_ptr<weld::Entry> m_xEdtName;
@@ -74,7 +74,7 @@ public:
/** #i68101# /** #i68101#
Dialog for editing Object name Dialog for editing Object name
plus uniqueness-callback-linkHandler */ plus uniqueness-callback-linkHandler */
class SvxObjectNameDialog : public weld::GenericDialogController class SvxObjectNameDialog final : public weld::GenericDialogController
{ {
private: private:
// name // name
@@ -101,7 +101,7 @@ public:
/** #i68101# /** #i68101#
Dialog for editing Object Title and Description */ Dialog for editing Object Title and Description */
class SvxObjectTitleDescDialog : public weld::GenericDialogController class SvxObjectTitleDescDialog final : public weld::GenericDialogController
{ {
private: private:
// title // title

View File

@@ -37,7 +37,7 @@ class SingleLinePrimitive2D;
namespace drawinglayer::processor2d namespace drawinglayer::processor2d
{ {
class DRAWINGLAYER_DLLPUBLIC CairoPixelProcessor2D : public BaseProcessor2D class DRAWINGLAYER_DLLPUBLIC CairoPixelProcessor2D final : public BaseProcessor2D
{ {
// the modifiedColorPrimitive stack // the modifiedColorPrimitive stack
basegfx::BColorModifierStack maBColorModifierStack; basegfx::BColorModifierStack maBColorModifierStack;

View File

@@ -276,7 +276,7 @@ public:
~CustomPropertiesTimeField(); ~CustomPropertiesTimeField();
}; };
class DurationDialog_Impl : public weld::GenericDialogController class DurationDialog_Impl final : public weld::GenericDialogController
{ {
std::unique_ptr<weld::CheckButton> m_xNegativeCB; std::unique_ptr<weld::CheckButton> m_xNegativeCB;
std::unique_ptr<weld::SpinButton> m_xYearNF; std::unique_ptr<weld::SpinButton> m_xYearNF;

View File

@@ -48,7 +48,7 @@ public:
OUString& rStrName ); OUString& rStrName );
}; };
class XMLOFF_DLLPUBLIC XMLGradientStopContext: public SvXMLImportContext class XMLOFF_DLLPUBLIC XMLGradientStopContext final : public SvXMLImportContext
{ {
public: public:
XMLGradientStopContext( XMLGradientStopContext(

View File

@@ -16,7 +16,7 @@
namespace oox::xls { namespace oox::xls {
class FormulaBuffer : public WorkbookHelper class FormulaBuffer final : public WorkbookHelper
{ {
public: public:
/** /**

View File

@@ -96,7 +96,7 @@ class FormulaParserImpl;
instance is contained in the global filter data to prevent construction and instance is contained in the global filter data to prevent construction and
destruction of internal buffers for every imported formula. destruction of internal buffers for every imported formula.
*/ */
class FormulaParser : public FormulaProcessorBase class FormulaParser final : public FormulaProcessorBase
{ {
public: public:
explicit FormulaParser( const WorkbookHelper& rHelper ); explicit FormulaParser( const WorkbookHelper& rHelper );

View File

@@ -29,7 +29,7 @@
class SdrModel; class SdrModel;
class ScDrawModelBroadcaster : public SfxListener, class ScDrawModelBroadcaster final : public SfxListener,
public ::cppu::WeakImplHelper< css::document::XShapeEventBroadcaster > public ::cppu::WeakImplHelper< css::document::XShapeEventBroadcaster >
{ {
mutable std::mutex maListenerMutex; mutable std::mutex maListenerMutex;

View File

@@ -30,7 +30,7 @@ typedef rtl::Reference<sdr::table::Cell> CellRef;
namespace sdr::properties namespace sdr::properties
{ {
class CellTextProvider : public svx::ITextProvider class CellTextProvider final : public svx::ITextProvider
{ {
public: public:
explicit CellTextProvider(sdr::table::CellRef xCell); explicit CellTextProvider(sdr::table::CellRef xCell);
@@ -44,7 +44,7 @@ private:
const sdr::table::CellRef m_xCell; const sdr::table::CellRef m_xCell;
}; };
class CellProperties : public TextProperties class CellProperties final : public TextProperties
{ {
protected: protected:
// create a new itemset // create a new itemset

View File

@@ -27,7 +27,7 @@
#include <mutex> #include <mutex>
#include <vector> #include <vector>
class SvxShapeCollection class SvxShapeCollection final
: public cppu::WeakAggImplHelper3<css::drawing::XShapes, css::lang::XServiceInfo, : public cppu::WeakAggImplHelper3<css::drawing::XShapes, css::lang::XServiceInfo,
css::lang::XComponent> css::lang::XComponent>
{ {

View File

@@ -61,7 +61,7 @@ VCL_DLLPUBLIC basegfx::B2DRange getClippedFillDamage(cairo_t* cr);
VCL_DLLPUBLIC basegfx::B2DRange getClippedStrokeDamage(cairo_t* cr); VCL_DLLPUBLIC basegfx::B2DRange getClippedStrokeDamage(cairo_t* cr);
VCL_DLLPUBLIC basegfx::B2DRange getStrokeDamage(cairo_t* cr); VCL_DLLPUBLIC basegfx::B2DRange getStrokeDamage(cairo_t* cr);
class SystemDependentData_CairoPath : public basegfx::SystemDependentData class SystemDependentData_CairoPath final : public basegfx::SystemDependentData
{ {
private: private:
// the path data itself // the path data itself

View File

@@ -27,7 +27,7 @@
#include <headless/CairoCommon.hxx> #include <headless/CairoCommon.hxx>
class VCL_DLLPUBLIC SvpGraphicsBackend : public SalGraphicsImpl class VCL_DLLPUBLIC SvpGraphicsBackend final : public SalGraphicsImpl
{ {
CairoCommon& m_rCairoCommon; CairoCommon& m_rCairoCommon;

View File

@@ -28,7 +28,7 @@ struct CairoCommon;
typedef struct _cairo cairo_t; typedef struct _cairo cairo_t;
typedef struct _cairo_font_options cairo_font_options_t; typedef struct _cairo_font_options cairo_font_options_t;
class VCL_DLLPUBLIC CairoTextRender : public FreeTypeTextRenderImpl class VCL_DLLPUBLIC CairoTextRender final : public FreeTypeTextRenderImpl
{ {
private: private:
CairoCommon& mrCairoCommon; CairoCommon& mrCairoCommon;

View File

@@ -85,7 +85,7 @@ private:
}; };
class FreetypeFontFace : public vcl::font::PhysicalFontFace class FreetypeFontFace final : public vcl::font::PhysicalFontFace
{ {
private: private:
FreetypeFontInfo* mpFreetypeFontInfo; FreetypeFontInfo* mpFreetypeFontInfo;