summaryrefslogtreecommitdiff
path: root/include/basegfx/utils
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-27 16:36:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-27 18:20:07 +0200
commitb3c965ccaa896b12b33ff5b7ccea0eb20d560116 (patch)
treea1b9bdee1aa1e0fc61c3d9c5454a8bc0632a68c1 /include/basegfx/utils
parent0779a1a185d2144d13766e6d827f43c0fd1bc814 (diff)
clang-tidy modernize-pass-by-value in basegfx
Change-Id: I1ec34b2f0e9869a82894795f1d6351189ae92d9b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135043 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/basegfx/utils')
-rw-r--r--include/basegfx/utils/gradienttools.hxx5
-rw-r--r--include/basegfx/utils/unopolypolygon.hxx2
2 files changed, 4 insertions, 3 deletions
diff --git a/include/basegfx/utils/gradienttools.hxx b/include/basegfx/utils/gradienttools.hxx
index e3d816394b54..03892122b54b 100644
--- a/include/basegfx/utils/gradienttools.hxx
+++ b/include/basegfx/utils/gradienttools.hxx
@@ -23,6 +23,7 @@
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/vector/b2dvector.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
+#include <utility>
#include <basegfx/basegfxdllapi.h>
namespace basegfx { class B2DRange; }
@@ -72,10 +73,10 @@ namespace basegfx
}
ODFGradientInfo(
- const B2DHomMatrix& rTextureTransform,
+ B2DHomMatrix aTextureTransform,
double fAspectRatio,
sal_uInt32 nSteps)
- : maTextureTransform(rTextureTransform),
+ : maTextureTransform(std::move(aTextureTransform)),
mfAspectRatio(fAspectRatio),
mnSteps(nSteps)
{
diff --git a/include/basegfx/utils/unopolypolygon.hxx b/include/basegfx/utils/unopolypolygon.hxx
index 714036a3d101..48788b074ede 100644
--- a/include/basegfx/utils/unopolypolygon.hxx
+++ b/include/basegfx/utils/unopolypolygon.hxx
@@ -40,7 +40,7 @@ namespace basegfx::unotools
: public UnoPolyPolygonBase
{
public:
- explicit UnoPolyPolygon( const B2DPolyPolygon& );
+ explicit UnoPolyPolygon( B2DPolyPolygon );
// XPolyPolygon2D
SAL_DLLPRIVATE virtual void SAL_CALL addPolyPolygon( const css::geometry::RealPoint2D& position, const css::uno::Reference< css::rendering::XPolyPolygon2D >& polyPolygon ) override;