summaryrefslogtreecommitdiff
path: root/svx/inc/sdr
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-20 09:51:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-21 08:59:50 +0200
commit85f4938719180e1e344b28c073f909df6f972f96 (patch)
tree21aa235575692503cf2a2d40f0e63b7aad661b9f /svx/inc/sdr
parentcf69bb4f503eb8b3966d5caf825e0c05264a369e (diff)
clang-tidy modernize-pass-by-value in svx
Change-Id: Iedd87d321f4d161574df87629fdd6c7714ff31c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137248 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/inc/sdr')
-rw-r--r--svx/inc/sdr/attribute/sdreffectstextattribute.hxx6
-rw-r--r--svx/inc/sdr/attribute/sdrfilltextattribute.hxx6
-rw-r--r--svx/inc/sdr/attribute/sdrlineeffectstextattribute.hxx4
-rw-r--r--svx/inc/sdr/attribute/sdrlinefilleffectstextattribute.hxx4
-rw-r--r--svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx4
-rw-r--r--svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx2
-rw-r--r--svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx4
-rw-r--r--svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx2
-rw-r--r--svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx2
-rw-r--r--svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx2
-rw-r--r--svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx2
-rw-r--r--svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx6
-rw-r--r--svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx2
-rw-r--r--svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx18
14 files changed, 32 insertions, 32 deletions
diff --git a/svx/inc/sdr/attribute/sdreffectstextattribute.hxx b/svx/inc/sdr/attribute/sdreffectstextattribute.hxx
index e1826552dc76..95a7ffa3e356 100644
--- a/svx/inc/sdr/attribute/sdreffectstextattribute.hxx
+++ b/svx/inc/sdr/attribute/sdreffectstextattribute.hxx
@@ -40,9 +40,9 @@ namespace drawinglayer::attribute
public:
SdrEffectsTextAttribute(
- const SdrShadowAttribute& rShadow,
- const SdrTextAttribute& rTextAttribute,
- const SdrGlowAttribute& rGlow,
+ SdrShadowAttribute aShadow,
+ SdrTextAttribute aTextAttribute,
+ SdrGlowAttribute aGlow,
sal_Int32 nSoftEdgeRadius);
SdrEffectsTextAttribute();
SdrEffectsTextAttribute(const SdrEffectsTextAttribute& rCandidate);
diff --git a/svx/inc/sdr/attribute/sdrfilltextattribute.hxx b/svx/inc/sdr/attribute/sdrfilltextattribute.hxx
index 3bb66c809f41..98334a3507e8 100644
--- a/svx/inc/sdr/attribute/sdrfilltextattribute.hxx
+++ b/svx/inc/sdr/attribute/sdrfilltextattribute.hxx
@@ -36,9 +36,9 @@ namespace drawinglayer::attribute
public:
SdrFillTextAttribute(
- const SdrFillAttribute& rFill,
- const FillGradientAttribute& rFillFloatTransGradient,
- const SdrTextAttribute& rTextAttribute);
+ SdrFillAttribute aFill,
+ FillGradientAttribute aFillFloatTransGradient,
+ SdrTextAttribute aTextAttribute);
SdrFillTextAttribute();
SdrFillTextAttribute(const SdrFillTextAttribute& rCandidate);
SdrFillTextAttribute& operator=(const SdrFillTextAttribute& rCandidate);
diff --git a/svx/inc/sdr/attribute/sdrlineeffectstextattribute.hxx b/svx/inc/sdr/attribute/sdrlineeffectstextattribute.hxx
index 1e7f694c761a..3134b0b78b4e 100644
--- a/svx/inc/sdr/attribute/sdrlineeffectstextattribute.hxx
+++ b/svx/inc/sdr/attribute/sdrlineeffectstextattribute.hxx
@@ -35,8 +35,8 @@ namespace drawinglayer::attribute
public:
SdrLineEffectsTextAttribute(
- const SdrLineAttribute& rLine,
- const SdrLineStartEndAttribute& rLineStartEnd,
+ SdrLineAttribute aLine,
+ SdrLineStartEndAttribute aLineStartEnd,
const SdrShadowAttribute& rShadow,
const SdrTextAttribute& rTextAttribute,
const SdrGlowAttribute& rGlow,
diff --git a/svx/inc/sdr/attribute/sdrlinefilleffectstextattribute.hxx b/svx/inc/sdr/attribute/sdrlinefilleffectstextattribute.hxx
index 7bb85e897dc0..0adb1e49ffc2 100644
--- a/svx/inc/sdr/attribute/sdrlinefilleffectstextattribute.hxx
+++ b/svx/inc/sdr/attribute/sdrlinefilleffectstextattribute.hxx
@@ -35,10 +35,10 @@ namespace drawinglayer::attribute
public:
SdrLineFillEffectsTextAttribute(
const SdrLineAttribute& rLine,
- const SdrFillAttribute& rFill,
+ SdrFillAttribute aFill,
const SdrLineStartEndAttribute& rLineStartEnd,
const SdrShadowAttribute& rShadow,
- const FillGradientAttribute& rFillFloatTransGradient,
+ FillGradientAttribute aFillFloatTransGradient,
const SdrTextAttribute& rTextAttribute,
const SdrGlowAttribute& rGlow,
sal_Int32 nSoftEdgeRadius);
diff --git a/svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx
index 1051fbb7e585..eaa6665647f0 100644
--- a/svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrcaptionprimitive2d.hxx
@@ -45,9 +45,9 @@ namespace drawinglayer::primitive2d
public:
SdrCaptionPrimitive2D(
- const ::basegfx::B2DHomMatrix& rTransform,
+ ::basegfx::B2DHomMatrix aTransform,
const attribute::SdrLineFillEffectsTextAttribute& rSdrLFSTAttribute,
- const ::basegfx::B2DPolygon& rTail,
+ ::basegfx::B2DPolygon aTail,
double fCornerRadiusX,
double fCornerRadiusY);
diff --git a/svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx
index d105a5c87460..9b7d6648d0bc 100644
--- a/svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrconnectorprimitive2d.hxx
@@ -42,7 +42,7 @@ namespace drawinglayer::primitive2d
public:
SdrConnectorPrimitive2D(
const attribute::SdrLineEffectsTextAttribute& rSdrLSTAttribute,
- const ::basegfx::B2DPolygon& rUnitPolygon);
+ ::basegfx::B2DPolygon aUnitPolygon);
// data access
const attribute::SdrLineEffectsTextAttribute& getSdrLSTAttribute() const { return maSdrLSTAttribute; }
diff --git a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
index f5ed1f6b2276..cef7f29f59e2 100644
--- a/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrcustomshapeprimitive2d.hxx
@@ -54,10 +54,10 @@ namespace drawinglayer::primitive2d
SdrCustomShapePrimitive2D(
const attribute::SdrEffectsTextAttribute& rSdrSTAttribute,
Primitive2DContainer&& rSubPrimitives,
- const basegfx::B2DHomMatrix& rTextBox,
+ basegfx::B2DHomMatrix aTextBox,
bool bWordWrap,
bool b3DShape,
- const basegfx::B2DHomMatrix& rObjectMatrix);
+ basegfx::B2DHomMatrix aObjectMatrix);
// data access
const attribute::SdrEffectsTextAttribute& getSdrSTAttribute() const { return maSdrSTAttribute; }
diff --git a/svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx
index 9b4bf4ebeb90..3eacda3eee05 100644
--- a/svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrellipseprimitive2d.hxx
@@ -41,7 +41,7 @@ namespace drawinglayer::primitive2d
public:
SdrEllipsePrimitive2D(
- const ::basegfx::B2DHomMatrix& rTransform,
+ ::basegfx::B2DHomMatrix aTransform,
const attribute::SdrLineFillEffectsTextAttribute& rSdrLFSTAttribute);
// data access
diff --git a/svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx
index 5e349de4c64d..16f84c86bc1d 100644
--- a/svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrgrafprimitive2d.hxx
@@ -40,7 +40,7 @@ private:
const geometry::ViewInformation2D& aViewInformation) const override;
public:
- SdrGrafPrimitive2D(const ::basegfx::B2DHomMatrix& rTransform,
+ SdrGrafPrimitive2D(::basegfx::B2DHomMatrix aTransform,
const attribute::SdrLineFillEffectsTextAttribute& rSdrLFSTAttribute,
const GraphicObject& rGraphicObject, const GraphicAttr& rGraphicAttr);
diff --git a/svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx b/svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx
index 615eb3299def..59b5188bc330 100644
--- a/svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrole2primitive2d.hxx
@@ -40,7 +40,7 @@ namespace drawinglayer::primitive2d
public:
SdrOle2Primitive2D(
Primitive2DContainer&& rOLEContent,
- const basegfx::B2DHomMatrix& rTransform,
+ basegfx::B2DHomMatrix aTransform,
const attribute::SdrLineFillEffectsTextAttribute& rSdrLFSTAttribute);
// data access
diff --git a/svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx
index c734780422d8..20a0b9dd971f 100644
--- a/svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrolecontentprimitive2d.hxx
@@ -49,7 +49,7 @@ namespace drawinglayer::primitive2d
public:
SdrOleContentPrimitive2D(
const SdrOle2Obj& rSdrOle2Obj,
- const basegfx::B2DHomMatrix& rObjectTransform,
+ basegfx::B2DHomMatrix aObjectTransform,
sal_uInt32 nGraphicVersion
);
diff --git a/svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx
index 6e4819a898a6..68abc8067df6 100644
--- a/svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrpathprimitive2d.hxx
@@ -57,10 +57,10 @@ namespace drawinglayer::primitive2d
// a 2nd version without can be defined that just does not set the
// maUnitDefinitionPolyPolygon or set equal to UnitPolyPolygon
SdrPathPrimitive2D(
- const basegfx::B2DHomMatrix& rTransform,
+ basegfx::B2DHomMatrix aTransform,
const attribute::SdrLineFillEffectsTextAttribute& rSdrLFSTAttribute,
- const basegfx::B2DPolyPolygon& rUnitPolyPolygon,
- const basegfx::B2DPolyPolygon& rUnitDefinitionPolyPolygon);
+ basegfx::B2DPolyPolygon aUnitPolyPolygon,
+ basegfx::B2DPolyPolygon aUnitDefinitionPolyPolygon);
// data access
const basegfx::B2DHomMatrix& getTransform() const { return maTransform; }
diff --git a/svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx
index 6480f03c657b..f306e5642ca4 100644
--- a/svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrrectangleprimitive2d.hxx
@@ -46,7 +46,7 @@ namespace drawinglayer::primitive2d
public:
SdrRectanglePrimitive2D(
- const basegfx::B2DHomMatrix& rTransform,
+ basegfx::B2DHomMatrix aTransform,
const attribute::SdrLineFillEffectsTextAttribute& rSdrLFSTAttribute,
double fCornerRadiusX,
double fCornerRadiusY,
diff --git a/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx b/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx
index ab1483be7967..bc44ca0096ee 100644
--- a/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx
+++ b/svx/inc/sdr/primitive2d/sdrtextprimitive2d.hxx
@@ -80,7 +80,7 @@ namespace drawinglayer::primitive2d
public:
SdrTextPrimitive2D(
const SdrText* pSdrText,
- const OutlinerParaObject& rOutlinerParaObjectPtr);
+ OutlinerParaObject aOutlinerParaObjectPtr);
// get data
const SdrText* getSdrText() const;
@@ -117,8 +117,8 @@ namespace drawinglayer::primitive2d
SdrContourTextPrimitive2D(
const SdrText* pSdrText,
const OutlinerParaObject& rOutlinerParaObjectPtr,
- const basegfx::B2DPolyPolygon& rUnitPolyPolygon,
- const basegfx::B2DHomMatrix& rObjectTransform);
+ basegfx::B2DPolyPolygon aUnitPolyPolygon,
+ basegfx::B2DHomMatrix aObjectTransform);
// get data
const basegfx::B2DPolyPolygon& getUnitPolyPolygon() const { return maUnitPolyPolygon; }
@@ -154,8 +154,8 @@ namespace drawinglayer::primitive2d
SdrPathTextPrimitive2D(
const SdrText* pSdrText,
const OutlinerParaObject& rOutlinerParaObjectPtr,
- const basegfx::B2DPolyPolygon& rPathPolyPolygon,
- const attribute::SdrFormTextAttribute& rSdrFormTextAttribute);
+ basegfx::B2DPolyPolygon aPathPolyPolygon,
+ attribute::SdrFormTextAttribute aSdrFormTextAttribute);
// get data
const basegfx::B2DPolyPolygon& getPathPolyPolygon() const { return maPathPolyPolygon; }
@@ -197,7 +197,7 @@ namespace drawinglayer::primitive2d
SdrBlockTextPrimitive2D(
const SdrText* pSdrText,
const OutlinerParaObject& rOutlinerParaObjectPtr,
- const basegfx::B2DHomMatrix& rTextRangeTransform,
+ basegfx::B2DHomMatrix aTextRangeTransform,
SdrTextHorzAdjust aSdrTextHorzAdjust,
SdrTextVertAdjust aSdrTextVertAdjust,
bool bFixedCellHeight,
@@ -243,7 +243,7 @@ namespace drawinglayer::primitive2d
SdrStretchTextPrimitive2D(
const SdrText* pSdrText,
const OutlinerParaObject& rOutlinerParaObjectPtr,
- const basegfx::B2DHomMatrix& rTextRangeTransform,
+ basegfx::B2DHomMatrix aTextRangeTransform,
bool bFixedCellHeight);
// get data
@@ -278,7 +278,7 @@ namespace drawinglayer::primitive2d
SdrAutoFitTextPrimitive2D(
const SdrText* pSdrText,
const OutlinerParaObject& rOutlinerParaObjectPtr,
- const ::basegfx::B2DHomMatrix& rTextRangeTransform,
+ ::basegfx::B2DHomMatrix aTextRangeTransform,
bool bWordWrap);
// get data
@@ -312,7 +312,7 @@ namespace drawinglayer::primitive2d
SdrChainedTextPrimitive2D(
const SdrText* pSdrText,
const OutlinerParaObject& rOutlinerParaObjectPtrs,
- const ::basegfx::B2DHomMatrix& rTextRangeTransform);
+ ::basegfx::B2DHomMatrix aTextRangeTransform);
// get data
const basegfx::B2DHomMatrix& getTextRangeTransform() const { return maTextRangeTransform; }