summaryrefslogtreecommitdiff
path: root/include/linguistic/lngprophelp.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-03-20 12:29:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-03-26 17:16:47 +0100
commit5b2cd79aded5081ca8a4bc20fb851573ce890092 (patch)
treec261ca5de7e605692362f668f0a4262cec31f359 /include/linguistic/lngprophelp.hxx
parentfc1b2a0ab2ecddaeead680aee80a49109082a47b (diff)
loplugin:finalmethods
create a plugin that finds methods we can mark as final because they are not override in subclasses. Which is useful both as documentation (telling you that you don't need to worry about subclasses changing the implementation under you), and for performance, letting the compiler elide virtual calls in many cases. Apply the results to a subset of stuff in /include Change-Id: I7b5cc893ec2f343bc356bfc338e4cf531ffba1e0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165054 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/linguistic/lngprophelp.hxx')
-rw-r--r--include/linguistic/lngprophelp.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linguistic/lngprophelp.hxx b/include/linguistic/lngprophelp.hxx
index d9a2bd505960..0095f40afdd7 100644
--- a/include/linguistic/lngprophelp.hxx
+++ b/include/linguistic/lngprophelp.hxx
@@ -95,7 +95,7 @@ public:
// XEventListener
virtual void SAL_CALL
- disposing( const css::lang::EventObject& rSource ) override;
+ disposing( const css::lang::EventObject& rSource ) override final;
// XPropertyChangeListener
virtual void SAL_CALL
@@ -104,10 +104,10 @@ public:
// XLinguServiceEventBroadcaster
virtual sal_Bool SAL_CALL
addLinguServiceEventListener(
- const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener ) override;
+ const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener ) override final;
virtual sal_Bool SAL_CALL
removeLinguServiceEventListener(
- const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener ) override;
+ const css::uno::Reference< css::linguistic2::XLinguServiceEventListener >& rxListener ) override final;
// non-UNO functions
void AddAsPropListener();