summaryrefslogtreecommitdiff
path: root/drawinglayer/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-14 14:46:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-15 09:24:47 +0200
commitdcb36da2950ad967ad3f633ca12353da98ac620b (patch)
treec855b0c64b9ab4218d833749aa4b425bf5af749d /drawinglayer/inc
parent2da1cdd31312a70f205f29bb4dfcbc1771409aa4 (diff)
clang-tidy modernize-pass-by-value in drawinglayer
Change-Id: I8a3245c6a4d687edbc95cf28b2932d80c86a7b65 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135828 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/inc')
-rw-r--r--drawinglayer/inc/primitive2d/cropprimitive2d.hxx2
-rw-r--r--drawinglayer/inc/primitive2d/textlineprimitive2d.hxx2
-rw-r--r--drawinglayer/inc/primitive2d/textstrikeoutprimitive2d.hxx6
-rw-r--r--drawinglayer/inc/primitive3d/hatchtextureprimitive3d.hxx2
-rw-r--r--drawinglayer/inc/primitive3d/shadowprimitive3d.hxx2
-rw-r--r--drawinglayer/inc/primitive3d/textureprimitive3d.hxx2
-rw-r--r--drawinglayer/inc/processor3d/geometry2dextractor.hxx2
-rw-r--r--drawinglayer/inc/processor3d/shadow3dextractor.hxx2
8 files changed, 10 insertions, 10 deletions
diff --git a/drawinglayer/inc/primitive2d/cropprimitive2d.hxx b/drawinglayer/inc/primitive2d/cropprimitive2d.hxx
index 3bed0638f254..e1c66cffab27 100644
--- a/drawinglayer/inc/primitive2d/cropprimitive2d.hxx
+++ b/drawinglayer/inc/primitive2d/cropprimitive2d.hxx
@@ -65,7 +65,7 @@ namespace drawinglayer::primitive2d
/// constructor
CropPrimitive2D(
Primitive2DContainer&& aChildren,
- const basegfx::B2DHomMatrix& rTransformation,
+ basegfx::B2DHomMatrix aTransformation,
double fCropLeft,
double fCropTop,
double fCropRight,
diff --git a/drawinglayer/inc/primitive2d/textlineprimitive2d.hxx b/drawinglayer/inc/primitive2d/textlineprimitive2d.hxx
index 423be7995879..e27364e7895b 100644
--- a/drawinglayer/inc/primitive2d/textlineprimitive2d.hxx
+++ b/drawinglayer/inc/primitive2d/textlineprimitive2d.hxx
@@ -46,7 +46,7 @@ namespace drawinglayer::primitive2d
public:
/// constructor
TextLinePrimitive2D(
- const basegfx::B2DHomMatrix& rObjectTransformation,
+ basegfx::B2DHomMatrix aObjectTransformation,
double fWidth,
double fOffset,
double fHeight,
diff --git a/drawinglayer/inc/primitive2d/textstrikeoutprimitive2d.hxx b/drawinglayer/inc/primitive2d/textstrikeoutprimitive2d.hxx
index 9b93e28dbe0d..516299198192 100644
--- a/drawinglayer/inc/primitive2d/textstrikeoutprimitive2d.hxx
+++ b/drawinglayer/inc/primitive2d/textstrikeoutprimitive2d.hxx
@@ -42,7 +42,7 @@ namespace drawinglayer::primitive2d
public:
/// constructor
BaseTextStrikeoutPrimitive2D(
- const basegfx::B2DHomMatrix& rObjectTransformation,
+ basegfx::B2DHomMatrix aObjectTransformation,
double fWidth,
const basegfx::BColor& rFontColor);
@@ -77,8 +77,8 @@ namespace drawinglayer::primitive2d
double fWidth,
const basegfx::BColor& rFontColor,
sal_Unicode aStrikeoutChar,
- const attribute::FontAttribute& rFontAttribute,
- const css::lang::Locale& rLocale);
+ attribute::FontAttribute aFontAttribute,
+ css::lang::Locale aLocale);
/// data read access
sal_Unicode getStrikeoutChar() const { return maStrikeoutChar; }
diff --git a/drawinglayer/inc/primitive3d/hatchtextureprimitive3d.hxx b/drawinglayer/inc/primitive3d/hatchtextureprimitive3d.hxx
index 151fa67ea9da..a60c4da9d0a8 100644
--- a/drawinglayer/inc/primitive3d/hatchtextureprimitive3d.hxx
+++ b/drawinglayer/inc/primitive3d/hatchtextureprimitive3d.hxx
@@ -49,7 +49,7 @@ namespace drawinglayer::primitive3d
public:
/// constructor
HatchTexturePrimitive3D(
- const attribute::FillHatchAttribute& rHatch,
+ attribute::FillHatchAttribute aHatch,
const Primitive3DContainer& rChildren,
const basegfx::B2DVector& rTextureSize,
bool bModulate,
diff --git a/drawinglayer/inc/primitive3d/shadowprimitive3d.hxx b/drawinglayer/inc/primitive3d/shadowprimitive3d.hxx
index 627d2b8c1b9b..06d4e9f49d77 100644
--- a/drawinglayer/inc/primitive3d/shadowprimitive3d.hxx
+++ b/drawinglayer/inc/primitive3d/shadowprimitive3d.hxx
@@ -48,7 +48,7 @@ namespace drawinglayer::primitive3d
public:
/// constructor
ShadowPrimitive3D(
- const basegfx::B2DHomMatrix& rShadowTransform,
+ basegfx::B2DHomMatrix aShadowTransform,
const basegfx::BColor& rShadowColor,
double fShadowTransparence,
bool bShadow3D,
diff --git a/drawinglayer/inc/primitive3d/textureprimitive3d.hxx b/drawinglayer/inc/primitive3d/textureprimitive3d.hxx
index 855ee34363a3..56586217bdff 100644
--- a/drawinglayer/inc/primitive3d/textureprimitive3d.hxx
+++ b/drawinglayer/inc/primitive3d/textureprimitive3d.hxx
@@ -121,7 +121,7 @@ namespace drawinglayer::primitive3d
public:
/// constructor
GradientTexturePrimitive3D(
- const attribute::FillGradientAttribute& rGradient,
+ attribute::FillGradientAttribute aGradient,
const Primitive3DContainer& rChildren,
const basegfx::B2DVector& rTextureSize,
bool bModulate,
diff --git a/drawinglayer/inc/processor3d/geometry2dextractor.hxx b/drawinglayer/inc/processor3d/geometry2dextractor.hxx
index e490ecfc538c..8d78110c8dcf 100644
--- a/drawinglayer/inc/processor3d/geometry2dextractor.hxx
+++ b/drawinglayer/inc/processor3d/geometry2dextractor.hxx
@@ -53,7 +53,7 @@ namespace drawinglayer::processor3d
public:
Geometry2DExtractingProcessor(
const geometry::ViewInformation3D& rViewInformation,
- const basegfx::B2DHomMatrix& rObjectTransformation);
+ basegfx::B2DHomMatrix aObjectTransformation);
// data read access
const primitive2d::Primitive2DContainer& getPrimitive2DSequence() const { return maPrimitive2DSequence; }
diff --git a/drawinglayer/inc/processor3d/shadow3dextractor.hxx b/drawinglayer/inc/processor3d/shadow3dextractor.hxx
index 9fa877fec552..64890b7a630a 100644
--- a/drawinglayer/inc/processor3d/shadow3dextractor.hxx
+++ b/drawinglayer/inc/processor3d/shadow3dextractor.hxx
@@ -78,7 +78,7 @@ namespace drawinglayer::processor3d
public:
Shadow3DExtractingProcessor(
const geometry::ViewInformation3D& rViewInformation,
- const basegfx::B2DHomMatrix& rObjectTransformation,
+ basegfx::B2DHomMatrix aObjectTransformation,
const basegfx::B3DVector& rLightNormal,
double fShadowSlant,
const basegfx::B3DRange& rContained3DRange);