From dcb36da2950ad967ad3f633ca12353da98ac620b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 14 Jun 2022 14:46:11 +0200 Subject: 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 --- include/drawinglayer/processor2d/baseprocessor2d.hxx | 2 +- include/drawinglayer/processor2d/textaspolygonextractor2d.hxx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'include/drawinglayer/processor2d') 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 #include #include +#include #include @@ -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) { -- cgit