From 5b2cd79aded5081ca8a4bc20fb851573ce890092 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Mar 2024 12:29:19 +0200 Subject: 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 --- include/linguistic/lngprophelp.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/linguistic/lngprophelp.hxx') 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(); -- cgit