[Libreoffice-commits] core.git: toolkit/inc UnoControls/inc unoxml/inc writerfilter/inc writerperfect/inc

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Sun Dec 22 19:31:30 UTC 2019


 UnoControls/inc/multiplexer.hxx          |    6 ++----
 toolkit/inc/helper/scrollabledialog.hxx  |    2 +-
 toolkit/inc/helper/unowrapper.hxx        |    2 +-
 unoxml/inc/mouseevent.hxx                |    2 +-
 unoxml/inc/mutationevent.hxx             |    2 +-
 writerfilter/inc/ooxml/QNameToString.hxx |    2 +-
 writerperfect/inc/DirectoryStream.hxx    |    2 +-
 writerperfect/inc/DocumentHandler.hxx    |    2 +-
 writerperfect/inc/WPFTEncodingDialog.hxx |    2 +-
 writerperfect/inc/WPXSvInputStream.hxx   |    2 +-
 10 files changed, 11 insertions(+), 13 deletions(-)

New commits:
commit 6ef3027ff9a5ee48e9fe2b8817eeabe444d6ec05
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sun Dec 22 19:45:05 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Dec 22 20:30:38 2019 +0100

    loplugin:finalclasses in UnoControls..writerperfect
    
    Change-Id: I751c9a45503326dfdaeb471967a688a95d4fa090
    Reviewed-on: https://gerrit.libreoffice.org/85711
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/UnoControls/inc/multiplexer.hxx b/UnoControls/inc/multiplexer.hxx
index dda3013a3600..640435ad520e 100644
--- a/UnoControls/inc/multiplexer.hxx
+++ b/UnoControls/inc/multiplexer.hxx
@@ -39,7 +39,7 @@ namespace com::sun::star::awt { struct WindowEvent; }
 
 namespace unocontrols {
 
-class OMRCListenerMultiplexerHelper : public css::awt::XFocusListener
+class OMRCListenerMultiplexerHelper final : public css::awt::XFocusListener
                                     , public css::awt::XWindowListener
                                     , public css::awt::XKeyListener
                                     , public css::awt::XMouseListener
@@ -198,9 +198,7 @@ public:
 
     virtual void SAL_CALL windowDeactivated( const css::lang::EventObject& aEvent ) override;
 
-//  protected methods
-
-protected:
+private:
 
     /**
         @short      Remove the listener from the peer.
diff --git a/toolkit/inc/helper/scrollabledialog.hxx b/toolkit/inc/helper/scrollabledialog.hxx
index 14bc87ab027c..6dce324dbccb 100644
--- a/toolkit/inc/helper/scrollabledialog.hxx
+++ b/toolkit/inc/helper/scrollabledialog.hxx
@@ -26,7 +26,7 @@
 
 namespace toolkit
 {
-    class ScrollableDialog : public Dialog
+    class ScrollableDialog final : public Dialog
     {
     public:
         enum ScrollBarVisibility { None, Vert, Hori, Both };
diff --git a/toolkit/inc/helper/unowrapper.hxx b/toolkit/inc/helper/unowrapper.hxx
index c095ef2f4f8b..cfb890584c61 100644
--- a/toolkit/inc/helper/unowrapper.hxx
+++ b/toolkit/inc/helper/unowrapper.hxx
@@ -32,7 +32,7 @@
 
 
 
-class UnoWrapper : public UnoWrapperBase
+class UnoWrapper final : public UnoWrapperBase
 {
 private:
     css::uno::Reference< css::awt::XToolkit>  mxToolkit;
diff --git a/unoxml/inc/mouseevent.hxx b/unoxml/inc/mouseevent.hxx
index 3f6788e89f13..abbf1ff2c82e 100644
--- a/unoxml/inc/mouseevent.hxx
+++ b/unoxml/inc/mouseevent.hxx
@@ -32,7 +32,7 @@ namespace DOM { namespace events {
 typedef ::cppu::ImplInheritanceHelper< CUIEvent, css::xml::dom::events::XMouseEvent >
     CMouseEvent_Base;
 
-class CMouseEvent
+class CMouseEvent final
     : public CMouseEvent_Base
 {
     sal_Int32 m_screenX;
diff --git a/unoxml/inc/mutationevent.hxx b/unoxml/inc/mutationevent.hxx
index 5499b5a93633..68145b270b3e 100644
--- a/unoxml/inc/mutationevent.hxx
+++ b/unoxml/inc/mutationevent.hxx
@@ -37,7 +37,7 @@ namespace DOM { namespace events {
 typedef ::cppu::ImplInheritanceHelper< CEvent, css::xml::dom::events::XMutationEvent >
     CMutationEvent_Base;
 
-class CMutationEvent
+class CMutationEvent final
     : public CMutationEvent_Base
 {
     css::uno::Reference< css::xml::dom::XNode > m_relatedNode;
diff --git a/writerfilter/inc/ooxml/QNameToString.hxx b/writerfilter/inc/ooxml/QNameToString.hxx
index 3508a5f4229e..c076047e13a4 100644
--- a/writerfilter/inc/ooxml/QNameToString.hxx
+++ b/writerfilter/inc/ooxml/QNameToString.hxx
@@ -29,7 +29,7 @@
 namespace writerfilter
 {
 
-class QNameToString : public virtual SvRefBase
+class QNameToString final : public virtual SvRefBase
 {
     typedef tools::SvRef<QNameToString> Pointer_t;
     typedef std::map < Id, std::string > Map;
diff --git a/writerperfect/inc/DirectoryStream.hxx b/writerperfect/inc/DirectoryStream.hxx
index 6747c8707109..1f9f32303cac 100644
--- a/writerperfect/inc/DirectoryStream.hxx
+++ b/writerperfect/inc/DirectoryStream.hxx
@@ -32,7 +32,7 @@ class XContent;
 
 namespace writerperfect
 {
-class WRITERPERFECT_DLLPUBLIC DirectoryStream : public librevenge::RVNGInputStream
+class WRITERPERFECT_DLLPUBLIC DirectoryStream final : public librevenge::RVNGInputStream
 {
     struct Impl;
 
diff --git a/writerperfect/inc/DocumentHandler.hxx b/writerperfect/inc/DocumentHandler.hxx
index ab7b15dd6aab..d14bb273557f 100644
--- a/writerperfect/inc/DocumentHandler.hxx
+++ b/writerperfect/inc/DocumentHandler.hxx
@@ -47,7 +47,7 @@ class XDocumentHandler;
 
 namespace writerperfect
 {
-class WRITERPERFECT_DLLPUBLIC DocumentHandler : public OdfDocumentHandler
+class WRITERPERFECT_DLLPUBLIC DocumentHandler final : public OdfDocumentHandler
 {
 public:
     DocumentHandler(css::uno::Reference<css::xml::sax::XDocumentHandler> const& xHandler);
diff --git a/writerperfect/inc/WPFTEncodingDialog.hxx b/writerperfect/inc/WPFTEncodingDialog.hxx
index 81e0363a568d..b38977e6cce9 100644
--- a/writerperfect/inc/WPFTEncodingDialog.hxx
+++ b/writerperfect/inc/WPFTEncodingDialog.hxx
@@ -20,7 +20,7 @@
 
 namespace writerperfect
 {
-class WRITERPERFECT_DLLPUBLIC WPFTEncodingDialog : public weld::GenericDialogController
+class WRITERPERFECT_DLLPUBLIC WPFTEncodingDialog final : public weld::GenericDialogController
 {
 public:
     WPFTEncodingDialog(weld::Window* pParent, const OUString& title, const OUString& defEncoding);
diff --git a/writerperfect/inc/WPXSvInputStream.hxx b/writerperfect/inc/WPXSvInputStream.hxx
index f67e4159e28d..35908684825a 100644
--- a/writerperfect/inc/WPXSvInputStream.hxx
+++ b/writerperfect/inc/WPXSvInputStream.hxx
@@ -34,7 +34,7 @@ namespace writerperfect
 {
 class WPXSvInputStreamImpl;
 
-class WRITERPERFECT_DLLPUBLIC WPXSvInputStream : public librevenge::RVNGInputStream
+class WRITERPERFECT_DLLPUBLIC WPXSvInputStream final : public librevenge::RVNGInputStream
 {
 public:
     WPXSvInputStream(css::uno::Reference<css::io::XInputStream> const& xStream);


More information about the Libreoffice-commits mailing list