diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-12 15:52:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-13 09:22:40 +0200 |
commit | 54a97eb9ddd66294f303189ca12ef726177453cb (patch) | |
tree | fc068c028f44ef859021bf4b1a66daa29491a20d /include/vcl/metaact.hxx | |
parent | 72f631977435a704008a55d3be6489ba619e3064 (diff) |
clang-tidy modernize-pass-by-value in vcl
Change-Id: I9ddb786eb88213c53cf53067ced6899ca40ac6e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137000
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/metaact.hxx')
-rw-r--r-- | include/vcl/metaact.hxx | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx index 3ac267aae3fc..1719fca6ff6d 100644 --- a/include/vcl/metaact.hxx +++ b/include/vcl/metaact.hxx @@ -175,7 +175,7 @@ public: MetaLineAction( const Point& rStart, const Point& rEnd ); MetaLineAction( const Point& rStart, const Point& rEnd, - const LineInfo& rLineInfo ); + LineInfo aLineInfo ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -397,8 +397,8 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - explicit MetaPolyLineAction( const tools::Polygon& ); - explicit MetaPolyLineAction( const tools::Polygon&, const LineInfo& ); + explicit MetaPolyLineAction( tools::Polygon ); + explicit MetaPolyLineAction( tools::Polygon , LineInfo ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -427,7 +427,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - explicit MetaPolygonAction( const tools::Polygon& ); + explicit MetaPolygonAction( tools::Polygon ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -454,7 +454,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - explicit MetaPolyPolygonAction( const tools::PolyPolygon& ); + explicit MetaPolyPolygonAction( tools::PolyPolygon ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -484,7 +484,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - MetaTextAction( const Point& rPt, const OUString& rStr, + MetaTextAction( const Point& rPt, OUString aStr, sal_Int32 nIndex, sal_Int32 nLen ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; @@ -515,10 +515,10 @@ private: public: MetaTextArrayAction(); MetaTextArrayAction( const MetaTextArrayAction& rAction ); - MetaTextArrayAction( const Point& rStartPt, const OUString& rStr, - const std::vector<sal_Int32>& rDXAry, sal_Int32 nIndex, + MetaTextArrayAction( const Point& rStartPt, OUString aStr, + std::vector<sal_Int32> rDXAry, sal_Int32 nIndex, sal_Int32 nLen ); - MetaTextArrayAction( const Point& rStartPt, const OUString& rStr, + MetaTextArrayAction( const Point& rStartPt, OUString aStr, o3tl::span<const sal_Int32> pDXAry, sal_Int32 nIndex, sal_Int32 nLen ); @@ -564,7 +564,7 @@ public: virtual rtl::Reference<MetaAction> Clone() const override; MetaStretchTextAction( const Point& rPt, sal_uInt32 nWidth, - const OUString& rStr, + OUString aStr, sal_Int32 nIndex, sal_Int32 nLen ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; @@ -603,7 +603,7 @@ public: virtual rtl::Reference<MetaAction> Clone() const override; MetaTextRectAction( const tools::Rectangle& rRect, - const OUString& rStr, DrawTextFlags nStyle ); + OUString aStr, DrawTextFlags nStyle ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1005,7 +1005,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - MetaGradientAction( const tools::Rectangle& rRect, const Gradient& rGradient ); + MetaGradientAction( const tools::Rectangle& rRect, Gradient aGradient ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1035,7 +1035,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - MetaGradientExAction( const tools::PolyPolygon& rPolyPoly, const Gradient& rGradient ); + MetaGradientExAction( tools::PolyPolygon rPolyPoly, Gradient aGradient ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1065,7 +1065,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - MetaHatchAction( const tools::PolyPolygon& rPolyPoly, const Hatch& rHatch ); + MetaHatchAction( tools::PolyPolygon aPolyPoly, const Hatch& rHatch ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1096,7 +1096,7 @@ public: virtual rtl::Reference<MetaAction> Clone() const override; MetaWallpaperAction( const tools::Rectangle& rRect, - const Wallpaper& rPaper ); + Wallpaper aPaper ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1125,7 +1125,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - MetaClipRegionAction( const vcl::Region& rRegion, bool bClip ); + MetaClipRegionAction( vcl::Region aRegion, bool bClip ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1181,7 +1181,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - explicit MetaISectRegionClipRegionAction( const vcl::Region& ); + explicit MetaISectRegionClipRegionAction( vcl::Region ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1456,7 +1456,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - explicit MetaFontAction( const vcl::Font& ); + explicit MetaFontAction( vcl::Font ); virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1548,7 +1548,7 @@ public: virtual void Execute( OutputDevice* pOut ) override; virtual rtl::Reference<MetaAction> Clone() const override; - MetaTransparentAction( const tools::PolyPolygon& rPolyPoly, sal_uInt16 nTransPercent ); + MetaTransparentAction( tools::PolyPolygon aPolyPoly, sal_uInt16 nTransPercent ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1583,7 +1583,7 @@ public: virtual rtl::Reference<MetaAction> Clone() const override; MetaFloatTransparentAction( const GDIMetaFile& rMtf, const Point& rPos, - const Size& rSize, const Gradient& rGradient ); + const Size& rSize, Gradient aGradient ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1621,7 +1621,7 @@ public: virtual rtl::Reference<MetaAction> Clone() const override; MetaEPSAction( const Point& rPoint, const Size& rSize, - const GfxLink& rGfxLink, const GDIMetaFile& rSubst ); + GfxLink aGfxLink, const GDIMetaFile& rSubst ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; @@ -1681,7 +1681,7 @@ private: public: explicit MetaCommentAction(); explicit MetaCommentAction( const MetaCommentAction& rAct ); - explicit MetaCommentAction( const OString& rComment, sal_Int32 nValue = 0, const sal_uInt8* pData = nullptr, sal_uInt32 nDataSize = 0 ); + explicit MetaCommentAction( OString aComment, sal_Int32 nValue = 0, const sal_uInt8* pData = nullptr, sal_uInt32 nDataSize = 0 ); virtual void Move( tools::Long nHorzMove, tools::Long nVertMove ) override; virtual void Scale( double fScaleX, double fScaleY ) override; |