Kaydet (Commit) 049e0267 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:finalclasses in basic,basegfx

Change-Id: Iff223782fa0ded0fe46b8b7af35bfd21f331015f
Reviewed-on: https://gerrit.libreoffice.org/44535Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 37a4a250
...@@ -35,9 +35,8 @@ public: ...@@ -35,9 +35,8 @@ public:
}; };
// class SbStdPicture // class SbStdPicture
class BASIC_DLLPUBLIC SbStdPicture : public SbxObject class BASIC_DLLPUBLIC SbStdPicture final : public SbxObject
{ {
protected:
Graphic aGraphic; Graphic aGraphic;
virtual ~SbStdPicture() override; virtual ~SbStdPicture() override;
...@@ -56,9 +55,8 @@ public: ...@@ -56,9 +55,8 @@ public:
}; };
// class SbStdFont // class SbStdFont
class BASIC_DLLPUBLIC SbStdFont : public SbxObject class BASIC_DLLPUBLIC SbStdFont final : public SbxObject
{ {
protected:
bool bBold; bool bBold;
bool bItalic; bool bItalic;
bool bStrikeThrough; bool bStrikeThrough;
...@@ -94,10 +92,8 @@ public: ...@@ -94,10 +92,8 @@ public:
}; };
// class SbStdClipboard // class SbStdClipboard
class BASIC_DLLPUBLIC SbStdClipboard : public SbxObject class BASIC_DLLPUBLIC SbStdClipboard final : public SbxObject
{ {
protected:
virtual ~SbStdClipboard() override; virtual ~SbStdClipboard() override;
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override; virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
......
...@@ -613,13 +613,13 @@ public: ...@@ -613,13 +613,13 @@ public:
}; };
class ScriptExtensionIterator class ScriptExtensionIterator final
{ {
public: public:
ScriptExtensionIterator(); ScriptExtensionIterator();
OUString nextBasicOrDialogLibrary( bool& rbPureDialogLib ); OUString nextBasicOrDialogLibrary( bool& rbPureDialogLib );
protected: private:
css::uno::Reference< css::deployment::XPackage > css::uno::Reference< css::deployment::XPackage >
implGetNextUserScriptPackage( bool& rbPureDialogLib ); implGetNextUserScriptPackage( bool& rbPureDialogLib );
css::uno::Reference< css::deployment::XPackage > css::uno::Reference< css::deployment::XPackage >
...@@ -648,7 +648,7 @@ protected: ...@@ -648,7 +648,7 @@ protected:
int m_iUserPackage; int m_iUserPackage;
int m_iSharedPackage; int m_iSharedPackage;
int m_iBundledPackage; int m_iBundledPackage;
ScriptSubPackageIterator* m_pScriptSubPackageIterator; ScriptSubPackageIterator* m_pScriptSubPackageIterator;
......
...@@ -46,10 +46,9 @@ public: ...@@ -46,10 +46,9 @@ public:
}; };
class SbiSymPool { class SbiSymPool final {
friend class SbiSymDef; friend class SbiSymDef;
friend class SbiProcDef; friend class SbiProcDef;
protected:
SbiStringPool& rStrings; SbiStringPool& rStrings;
std::vector<std::unique_ptr<SbiSymDef>> m_Data; std::vector<std::unique_ptr<SbiSymDef>> m_Data;
SbiSymPool* pParent; SbiSymPool* pParent;
......
...@@ -371,9 +371,8 @@ namespace basegfx ...@@ -371,9 +371,8 @@ namespace basegfx
All references to BColorModifier members use shared pointers, thus instances of All references to BColorModifier members use shared pointers, thus instances of
BColorModifierStack can be copied by the default mechanisms if needed. BColorModifierStack can be copied by the default mechanisms if needed.
*/ */
class BASEGFX_DLLPUBLIC BColorModifierStack class BASEGFX_DLLPUBLIC BColorModifierStack final
{ {
protected:
::std::vector< BColorModifierSharedPtr > maBColorModifiers; ::std::vector< BColorModifierSharedPtr > maBColorModifiers;
public: public:
......
...@@ -27,9 +27,8 @@ ...@@ -27,9 +27,8 @@
namespace basegfx namespace basegfx
{ {
class BASEGFX_DLLPUBLIC BPixel class BASEGFX_DLLPUBLIC BPixel final
{ {
protected:
union union
{ {
struct struct
......
...@@ -35,9 +35,8 @@ namespace basegfx ...@@ -35,9 +35,8 @@ namespace basegfx
@derive Use this class to implement Points or Vectors @derive Use this class to implement Points or Vectors
which are based on two sal_Int64 values which are based on two sal_Int64 values
*/ */
class SAL_WARN_UNUSED BASEGFX_DLLPUBLIC B2I64Tuple class SAL_WARN_UNUSED BASEGFX_DLLPUBLIC B2I64Tuple final
{ {
protected:
sal_Int64 mnX; sal_Int64 mnX;
sal_Int64 mnY; sal_Int64 mnY;
......
...@@ -218,9 +218,8 @@ public: ...@@ -218,9 +218,8 @@ public:
virtual void Clear() override; virtual void Clear() override;
}; };
class BASIC_DLLPUBLIC SbxStdCollection : public SbxCollection class BASIC_DLLPUBLIC SbxStdCollection final : public SbxCollection
{ {
protected:
OUString aElemClass; OUString aElemClass;
bool bAddRemoveOk; bool bAddRemoveOk;
virtual ~SbxStdCollection() override; virtual ~SbxStdCollection() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment