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/drawinglayer/primitive3d/polygonprimitive3d.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/drawinglayer/primitive3d/polygonprimitive3d.hxx')
-rw-r--r-- | include/drawinglayer/primitive3d/polygonprimitive3d.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drawinglayer/primitive3d/polygonprimitive3d.hxx b/include/drawinglayer/primitive3d/polygonprimitive3d.hxx index a414cd27d472..5d4e0fb1bcc0 100644 --- a/include/drawinglayer/primitive3d/polygonprimitive3d.hxx +++ b/include/drawinglayer/primitive3d/polygonprimitive3d.hxx @@ -62,7 +62,7 @@ namespace drawinglayer::primitive3d virtual bool operator==(const BasePrimitive3D& rPrimitive) const override; /// get range - virtual basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& rViewInformation) const override; + virtual basegfx::B3DRange getB3DRange(const geometry::ViewInformation3D& rViewInformation) const override final; /// provide unique ID DeclPrimitive3DIDBlock() |