diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-24 15:43:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-25 14:09:39 +0200 |
commit | 060bab5d3c87468d769fc0de8b2d96411414816a (patch) | |
tree | 0873ea4f868c058d3a61112140e79cc7764015c4 /svx/inc/sdr | |
parent | fc45cc4899444c218637970ad7537fe7d92077a8 (diff) |
loplugin:finalclasses in svx
Change-Id: I7dd8d1a900694687fbed3f3f29b0ea4bb11b7d72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117790
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/inc/sdr')
-rw-r--r-- | svx/inc/sdr/contact/viewcontactofsdrpage.hxx | 5 | ||||
-rw-r--r-- | svx/inc/sdr/contact/viewcontactofunocontrol.hxx | 6 | ||||
-rw-r--r-- | svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx | 3 |
3 files changed, 5 insertions, 9 deletions
diff --git a/svx/inc/sdr/contact/viewcontactofsdrpage.hxx b/svx/inc/sdr/contact/viewcontactofsdrpage.hxx index 4168d1aa718a..59e49b5f2a62 100644 --- a/svx/inc/sdr/contact/viewcontactofsdrpage.hxx +++ b/svx/inc/sdr/contact/viewcontactofsdrpage.hxx @@ -149,7 +149,7 @@ public: bool getFront() const { return mbFront; } }; -class ViewContactOfSdrPage : public ViewContact +class ViewContactOfSdrPage final : public ViewContact { // the owner of this ViewContact. Set from constructor and not // to be changed in any way. @@ -168,7 +168,6 @@ class ViewContactOfSdrPage : public ViewContact ViewContactOfGrid maViewContactOfGridFront; ViewContactOfHelplines maViewContactOfHelplinesFront; -protected: // Create an Object-Specific ViewObjectContact, set ViewContact and // ObjectContact. Always needs to return something. Default is to create // a standard ViewObjectContact containing the given ObjectContact and *this @@ -192,7 +191,7 @@ public: // React on changes of the object of this ViewContact virtual void ActionChanged() override; -protected: +private: // This method is responsible for creating the graphical visualisation data // ONLY based on model data virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override; diff --git a/svx/inc/sdr/contact/viewcontactofunocontrol.hxx b/svx/inc/sdr/contact/viewcontactofunocontrol.hxx index 824051543250..8d16362aa092 100644 --- a/svx/inc/sdr/contact/viewcontactofunocontrol.hxx +++ b/svx/inc/sdr/contact/viewcontactofunocontrol.hxx @@ -39,7 +39,7 @@ namespace sdr::contact { //= ViewContactOfUnoControl - class ViewContactOfUnoControl : public ViewContactOfSdrObj + class ViewContactOfUnoControl final : public ViewContactOfSdrObj { public: // access to SdrObject @@ -57,14 +57,12 @@ namespace sdr::contact { css::uno::Reference< css::awt::XControl > getTemporaryControlForWindow( const vcl::Window& _rWindow, css::uno::Reference< css::awt::XControlContainer >& _inout_ControlContainer ) const; - protected: + private: virtual ViewObjectContact& CreateObjectSpecificViewObjectContact( ObjectContact& _rObjectContact ) override; - private: ViewContactOfUnoControl( const ViewContactOfUnoControl& ) = delete; ViewContactOfUnoControl& operator=( const ViewContactOfUnoControl& ) = delete; - protected: // This method is responsible for creating the graphical visualisation data // ONLY based on model data virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override; diff --git a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx index 7b837e1bf6d6..e84ef0a4d3e8 100644 --- a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx +++ b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx @@ -30,7 +30,7 @@ namespace drawinglayer::primitive2d { - class SdrCustomShapePrimitive2D : public BufferedDecompositionPrimitive2D + class SdrCustomShapePrimitive2D final : public BufferedDecompositionPrimitive2D { private: attribute::SdrEffectsTextAttribute maSdrSTAttribute; @@ -47,7 +47,6 @@ namespace drawinglayer::primitive2d basegfx::B2DHomMatrix maTransform; - protected: // local decomposition. virtual void create2DDecomposition(Primitive2DContainer& rContainer, const geometry::ViewInformation2D& aViewInformation) const override; |