diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-14 14:46:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-15 09:24:47 +0200 |
commit | dcb36da2950ad967ad3f633ca12353da98ac620b (patch) | |
tree | c855b0c64b9ab4218d833749aa4b425bf5af749d /include/drawinglayer/processor2d | |
parent | 2da1cdd31312a70f205f29bb4dfcbc1771409aa4 (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 'include/drawinglayer/processor2d')
-rw-r--r-- | include/drawinglayer/processor2d/baseprocessor2d.hxx | 2 | ||||
-rw-r--r-- | include/drawinglayer/processor2d/textaspolygonextractor2d.hxx | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/drawinglayer/processor2d/baseprocessor2d.hxx b/include/drawinglayer/processor2d/baseprocessor2d.hxx index 7ab7186308f1..9d1bb6b8a7a5 100644 --- a/include/drawinglayer/processor2d/baseprocessor2d.hxx +++ b/include/drawinglayer/processor2d/baseprocessor2d.hxx @@ -182,7 +182,7 @@ namespace drawinglayer::processor2d public: /// constructor/destructor - explicit BaseProcessor2D(const geometry::ViewInformation2D& rViewInformation); + explicit BaseProcessor2D(geometry::ViewInformation2D aViewInformation); virtual ~BaseProcessor2D(); /// the central processing method diff --git a/include/drawinglayer/processor2d/textaspolygonextractor2d.hxx b/include/drawinglayer/processor2d/textaspolygonextractor2d.hxx index 42e2376f0b58..feaea118e147 100644 --- a/include/drawinglayer/processor2d/textaspolygonextractor2d.hxx +++ b/include/drawinglayer/processor2d/textaspolygonextractor2d.hxx @@ -26,6 +26,7 @@ #include <basegfx/polygon/b2dpolypolygon.hxx> #include <basegfx/color/bcolor.hxx> #include <basegfx/color/bcolormodifier.hxx> +#include <utility> #include <vector> @@ -41,10 +42,10 @@ namespace drawinglayer::processor2d public: TextAsPolygonDataNode( - const basegfx::B2DPolyPolygon& rB2DPolyPolygon, + basegfx::B2DPolyPolygon aB2DPolyPolygon, const basegfx::BColor& rBColor, bool bIsFilled) - : maB2DPolyPolygon(rB2DPolyPolygon), + : maB2DPolyPolygon(std::move(aB2DPolyPolygon)), maBColor(rBColor), mbIsFilled(bIsFilled) { |