diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-15 13:21:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-19 07:46:25 +0100 |
commit | 193207c5abf339253e15b59f398da0c1f6f43bee (patch) | |
tree | af181e0b4335d73b4db5b2ccf180779f7c82de5b /slideshow/source/inc | |
parent | b4b3949da1aad091b9f8d0f301f9f7031d6ce295 (diff) |
improve loplugin passparamsbyref
I think I managed to disable this when I converted it to
use the shared plugin infrastructure.
So fix that, and then make it much smarter to avoid various
false positives.
Change-Id: I0a4657cff3b40a00434924bf764d024dbfd7d5b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176646
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow/source/inc')
-rw-r--r-- | slideshow/source/inc/box2dtools.hxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/slideshow/source/inc/box2dtools.hxx b/slideshow/source/inc/box2dtools.hxx index ffa95655f03b..037c5ef63b6c 100644 --- a/slideshow/source/inc/box2dtools.hxx +++ b/slideshow/source/inc/box2dtools.hxx @@ -113,7 +113,7 @@ private: @param rOutPos Position in LO user space coordinates */ - void setShapePosition(const css::uno::Reference<css::drawing::XShape> xShape, + void setShapePosition(const css::uno::Reference<css::drawing::XShape>& xShape, const ::basegfx::B2DPoint& rOutPos); /** Moves shape's corresponding Box2D body to specified position @@ -130,7 +130,7 @@ private: @param fPassedTime Time frame which the Box2D body should move to the specified position. */ - void setShapePositionByLinearVelocity(const css::uno::Reference<css::drawing::XShape> xShape, + void setShapePositionByLinearVelocity(const css::uno::Reference<css::drawing::XShape>& xShape, const ::basegfx::B2DPoint& rOutPos, const double fPassedTime); @@ -145,7 +145,7 @@ private: @param rVelocity Velocity vector in LO user space coordinates. */ - void setShapeLinearVelocity(const css::uno::Reference<css::drawing::XShape> xShape, + void setShapeLinearVelocity(const css::uno::Reference<css::drawing::XShape>& xShape, const basegfx::B2DVector& rVelocity); /** Sets rotation angle of the shape's corresponding Box2D body @@ -156,7 +156,8 @@ private: @param fAngle Angle of rotation in degrees. */ - void setShapeAngle(const css::uno::Reference<css::drawing::XShape> xShape, const double fAngle); + void setShapeAngle(const css::uno::Reference<css::drawing::XShape>& xShape, + const double fAngle); /** Rotates shape's corresponding Box2D body to specified angle @@ -173,7 +174,7 @@ private: @param fPassedTime Time frame which the Box2D body should rotate to the specified angle. */ - void setShapeAngleByAngularVelocity(const css::uno::Reference<css::drawing::XShape> xShape, + void setShapeAngleByAngularVelocity(const css::uno::Reference<css::drawing::XShape>& xShape, const double fAngle, const double fPassedTime); /** Sets angular velocity of the shape's corresponding Box2D body. @@ -184,7 +185,7 @@ private: @param fAngularVelocity Angular velocity in degrees per second. */ - void setShapeAngularVelocity(const css::uno::Reference<css::drawing::XShape> xShape, + void setShapeAngularVelocity(const css::uno::Reference<css::drawing::XShape>& xShape, const double fAngularVelocity); /** Sets whether a shape's corresponding Box2D body has collision in the Box2D World or not @@ -198,7 +199,7 @@ private: true if collisions should be enabled for the corresponding Box2D body of this shape and false if it should be disabled. */ - void setShapeCollision(const css::uno::Reference<css::drawing::XShape> xShape, + void setShapeCollision(const css::uno::Reference<css::drawing::XShape>& xShape, const bool bCanCollide); /** Process the updates queued in the maShapeParallelUpdateQueue |