diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-01 17:32:31 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-02 10:56:53 +0100 |
commit | 570eed8ce4761cea0aa74efc85c182bc4af45493 (patch) | |
tree | 138f034ae9b9c10ed4959f3445aeb9b14153a0df /forms/source/solar | |
parent | coverity#1420539: dead code (diff) | |
download | core-570eed8ce4761cea0aa74efc85c182bc4af45493.tar.gz core-570eed8ce4761cea0aa74efc85c182bc4af45493.zip |
loplugin:finalclasses in forms
Change-Id: I0f849fd104699e2861aaba2d4be38168e80703b0
Reviewed-on: https://gerrit.libreoffice.org/44189
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/solar')
-rw-r--r-- | forms/source/solar/component/navbarcontrol.hxx | 16 | ||||
-rw-r--r-- | forms/source/solar/inc/navtoolbar.hxx | 4 |
2 files changed, 9 insertions, 11 deletions
diff --git a/forms/source/solar/component/navbarcontrol.hxx b/forms/source/solar/component/navbarcontrol.hxx index 052cceedc8d7..bab88d1076a5 100644 --- a/forms/source/solar/component/navbarcontrol.hxx +++ b/forms/source/solar/component/navbarcontrol.hxx @@ -72,7 +72,7 @@ namespace frm virtual void SAL_CALL releaseDispatchProviderInterceptor( const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& Interceptor ) override; }; - class ONavigationBarPeer + class ONavigationBarPeer final :public VCLXWindow ,public OFormNavigationHelper { @@ -85,13 +85,6 @@ namespace frm const css::uno::Reference< css::awt::XControlModel >& _rxModel ); - protected: - explicit ONavigationBarPeer( - const css::uno::Reference< css::uno::XComponentContext >& _rxORB - ); - virtual ~ONavigationBarPeer() override; - - public: // XInterface DECLARE_XINTERFACE( ) @@ -101,7 +94,12 @@ namespace frm // XWindow2 using VCLXWindow::isEnabled; - protected: + private: + explicit ONavigationBarPeer( + const css::uno::Reference< css::uno::XComponentContext >& _rxORB + ); + virtual ~ONavigationBarPeer() override; + // XTypeProvider DECLARE_XTYPEPROVIDER( ) diff --git a/forms/source/solar/inc/navtoolbar.hxx b/forms/source/solar/inc/navtoolbar.hxx index b8fb4f6030b7..47347b9dc087 100644 --- a/forms/source/solar/inc/navtoolbar.hxx +++ b/forms/source/solar/inc/navtoolbar.hxx @@ -36,7 +36,7 @@ namespace frm class ImplNavToolBar; - class NavigationToolBar : public vcl::Window + class NavigationToolBar final : public vcl::Window { public: enum ImageSize @@ -115,7 +115,7 @@ namespace frm void SetTextLineColor( ); void SetTextLineColor( const Color& rColor ); - protected: + private: // Window overridables virtual void Resize() override; virtual void StateChanged( StateChangedType nType ) override; |