diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-20 12:29:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-26 17:16:47 +0100 |
commit | 5b2cd79aded5081ca8a4bc20fb851573ce890092 (patch) | |
tree | c261ca5de7e605692362f668f0a4262cec31f359 /include/xmloff/XMLEventsImportContext.hxx | |
parent | fc1b2a0ab2ecddaeead680aee80a49109082a47b (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/xmloff/XMLEventsImportContext.hxx')
-rw-r--r-- | include/xmloff/XMLEventsImportContext.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xmloff/XMLEventsImportContext.hxx b/include/xmloff/XMLEventsImportContext.hxx index 910a12e55079..d33e8bab9254 100644 --- a/include/xmloff/XMLEventsImportContext.hxx +++ b/include/xmloff/XMLEventsImportContext.hxx @@ -94,7 +94,7 @@ public: protected: virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext( - sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override; + sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList >& AttrList ) override final; }; #endif |