diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-05 18:46:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-06 07:13:56 +0200 |
commit | cf739db1d6261c43b5b28c6795a4b5b30156478f (patch) | |
tree | c098d6e16440a7f938d145d324421ec6c3e10d0d | |
parent | 547d8dacffc87586597d43e0e0378b4bb86b67a8 (diff) |
loplugin:moveparam in drawinglayer
Change-Id: I428116d96a011b061dda8376b6f27fb135a62964
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123114
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
42 files changed, 99 insertions, 101 deletions
diff --git a/drawinglayer/qa/unit/border.cxx b/drawinglayer/qa/unit/border.cxx index 6cfcd1348a4a..fdb3cc71a3a8 100644 --- a/drawinglayer/qa/unit/border.cxx +++ b/drawinglayer/qa/unit/border.cxx @@ -47,8 +47,8 @@ CPPUNIT_TEST_FIXTURE(DrawinglayerBorderTest, testDoubleDecompositionSolid) double const fExtendRightEnd = 0; basegfx::BColor aColorRight; basegfx::BColor aColorLeft; - const std::vector<double> aDashing(svtools::GetLineDashing(SvxBorderLineStyle::DOUBLE, 10.0)); - const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(aDashing); + std::vector<double> aDashing(svtools::GetLineDashing(SvxBorderLineStyle::DOUBLE, 10.0)); + const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(std::move(aDashing)); std::vector<drawinglayer::primitive2d::BorderLine> aBorderlines; aBorderlines.push_back(drawinglayer::primitive2d::BorderLine( @@ -62,7 +62,7 @@ CPPUNIT_TEST_FIXTURE(DrawinglayerBorderTest, testDoubleDecompositionSolid) fExtendRightStart, fExtendRightEnd, fExtendRightEnd)); rtl::Reference<drawinglayer::primitive2d::BorderLinePrimitive2D> aBorder( - new drawinglayer::primitive2d::BorderLinePrimitive2D(aStart, aEnd, aBorderlines, + new drawinglayer::primitive2d::BorderLinePrimitive2D(aStart, aEnd, std::move(aBorderlines), aStrokeAttribute)); // Decompose it into polygons. @@ -111,8 +111,8 @@ CPPUNIT_TEST_FIXTURE(DrawinglayerBorderTest, testDoublePixelProcessing) double const fExtendRightEnd = 0; basegfx::BColor aColorRight; basegfx::BColor aColorLeft; - const std::vector<double> aDashing(svtools::GetLineDashing(SvxBorderLineStyle::DOUBLE, 10.0)); - const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(aDashing); + std::vector<double> aDashing(svtools::GetLineDashing(SvxBorderLineStyle::DOUBLE, 10.0)); + const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(std::move(aDashing)); std::vector<drawinglayer::primitive2d::BorderLine> aBorderlines; aBorderlines.push_back(drawinglayer::primitive2d::BorderLine( @@ -126,7 +126,7 @@ CPPUNIT_TEST_FIXTURE(DrawinglayerBorderTest, testDoublePixelProcessing) fExtendRightStart, fExtendRightEnd, fExtendRightEnd)); rtl::Reference<drawinglayer::primitive2d::BorderLinePrimitive2D> aBorder( - new drawinglayer::primitive2d::BorderLinePrimitive2D(aStart, aEnd, aBorderlines, + new drawinglayer::primitive2d::BorderLinePrimitive2D(aStart, aEnd, std::move(aBorderlines), aStrokeAttribute)); drawinglayer::primitive2d::Primitive2DContainer aPrimitives; diff --git a/drawinglayer/source/attribute/sdrlightingattribute3d.cxx b/drawinglayer/source/attribute/sdrlightingattribute3d.cxx index ddf15708ca16..b07fa88c7ce3 100644 --- a/drawinglayer/source/attribute/sdrlightingattribute3d.cxx +++ b/drawinglayer/source/attribute/sdrlightingattribute3d.cxx @@ -35,9 +35,9 @@ namespace drawinglayer::attribute ImpSdrLightingAttribute( const basegfx::BColor& rAmbientLight, - const std::vector< Sdr3DLightAttribute >& rLightVector) + std::vector< Sdr3DLightAttribute >&& rLightVector) : maAmbientLight(rAmbientLight), - maLightVector(rLightVector) + maLightVector(std::move(rLightVector)) { } @@ -64,9 +64,9 @@ namespace drawinglayer::attribute SdrLightingAttribute::SdrLightingAttribute( const basegfx::BColor& rAmbientLight, - const std::vector< Sdr3DLightAttribute >& rLightVector) + std::vector< Sdr3DLightAttribute >&& rLightVector) : mpSdrLightingAttribute(ImpSdrLightingAttribute( - rAmbientLight, rLightVector)) + rAmbientLight, std::move(rLightVector))) { } diff --git a/drawinglayer/source/attribute/sdrlineattribute.cxx b/drawinglayer/source/attribute/sdrlineattribute.cxx index 217ed813cdcd..8224314058fa 100644 --- a/drawinglayer/source/attribute/sdrlineattribute.cxx +++ b/drawinglayer/source/attribute/sdrlineattribute.cxx @@ -42,13 +42,13 @@ namespace drawinglayer::attribute double fTransparence, const basegfx::BColor& rColor, css::drawing::LineCap eCap, - const std::vector< double >& rDotDashArray, + std::vector< double >&& rDotDashArray, double fFullDotDashLen) : mfWidth(fWidth), mfTransparence(fTransparence), mfFullDotDashLen(fFullDotDashLen), maColor(rColor), - maDotDashArray(rDotDashArray), + maDotDashArray(std::move(rDotDashArray)), meJoin(eJoin), meCap(eCap) { @@ -95,7 +95,7 @@ namespace drawinglayer::attribute double fTransparence, const basegfx::BColor& rColor, css::drawing::LineCap eCap, - const std::vector< double >& rDotDashArray, + std::vector< double >&& rDotDashArray, double fFullDotDashLen) : mpSdrLineAttribute( ImpSdrLineAttribute( @@ -104,7 +104,7 @@ namespace drawinglayer::attribute fTransparence, rColor, eCap, - rDotDashArray, + std::move(rDotDashArray), fFullDotDashLen)) { diff --git a/drawinglayer/source/attribute/strokeattribute.cxx b/drawinglayer/source/attribute/strokeattribute.cxx index d55aa2f35d75..b04a023aa7ac 100644 --- a/drawinglayer/source/attribute/strokeattribute.cxx +++ b/drawinglayer/source/attribute/strokeattribute.cxx @@ -32,9 +32,9 @@ namespace drawinglayer::attribute double mfFullDotDashLen; // sum of maDotDashArray (for convenience) ImpStrokeAttribute( - const std::vector< double >& rDotDashArray, + std::vector< double >&& rDotDashArray, double fFullDotDashLen) - : maDotDashArray(rDotDashArray), + : maDotDashArray(std::move(rDotDashArray)), mfFullDotDashLen(fFullDotDashLen) { } @@ -72,10 +72,10 @@ namespace drawinglayer::attribute } StrokeAttribute::StrokeAttribute( - const std::vector< double >& rDotDashArray, + std::vector< double >&& rDotDashArray, double fFullDotDashLen) : mpStrokeAttribute(ImpStrokeAttribute( - rDotDashArray, fFullDotDashLen)) + std::move(rDotDashArray), fFullDotDashLen)) { } diff --git a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx index 71657876bcfd..f26f690fb337 100644 --- a/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/borderlineprimitive2d.cxx @@ -265,11 +265,11 @@ namespace drawinglayer::primitive2d BorderLinePrimitive2D::BorderLinePrimitive2D( const basegfx::B2DPoint& rStart, const basegfx::B2DPoint& rEnd, - const std::vector< BorderLine >& rBorderLines, + std::vector< BorderLine >&& rBorderLines, const drawinglayer::attribute::StrokeAttribute& rStrokeAttribute) : maStart(rStart), maEnd(rEnd), - maBorderLines(rBorderLines), + maBorderLines(std::move(rBorderLines)), maStrokeAttribute(rStrokeAttribute) { } @@ -421,7 +421,7 @@ namespace drawinglayer::primitive2d new BorderLinePrimitive2D( pCandidateA->getStart(), pCandidateB->getEnd(), - aMergedBorderLines, + std::move(aMergedBorderLines), pCandidateA->getStrokeAttribute())); } diff --git a/drawinglayer/source/primitive2d/gridprimitive2d.cxx b/drawinglayer/source/primitive2d/gridprimitive2d.cxx index c7929a89c7cf..515263e0d475 100644 --- a/drawinglayer/source/primitive2d/gridprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/gridprimitive2d.cxx @@ -230,7 +230,7 @@ namespace drawinglayer::primitive2d // add PointArrayPrimitive2D if point markers were added if(nCountPoint) { - rContainer.push_back(new PointArrayPrimitive2D(aPositionsPoint, getBColor())); + rContainer.push_back(new PointArrayPrimitive2D(std::move(aPositionsPoint), getBColor())); } // add MarkerArrayPrimitive2D if cross markers were added @@ -241,11 +241,11 @@ namespace drawinglayer::primitive2d { // no subdivisions, so fall back to points at grid positions, no need to // visualize a difference between divisions and sub-divisions - rContainer.push_back(new PointArrayPrimitive2D(aPositionsCross, getBColor())); + rContainer.push_back(new PointArrayPrimitive2D(std::move(aPositionsCross), getBColor())); } else { - rContainer.push_back(new MarkerArrayPrimitive2D(aPositionsCross, getCrossMarker())); + rContainer.push_back(new MarkerArrayPrimitive2D(std::move(aPositionsCross), getCrossMarker())); } } diff --git a/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx b/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx index be7080769aea..ab66cb223a66 100644 --- a/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/markerarrayprimitive2d.cxx @@ -70,9 +70,9 @@ namespace drawinglayer::primitive2d } MarkerArrayPrimitive2D::MarkerArrayPrimitive2D( - const std::vector< basegfx::B2DPoint >& rPositions, + std::vector< basegfx::B2DPoint >&& rPositions, const BitmapEx& rMarker) - : maPositions(rPositions), + : maPositions(std::move(rPositions)), maMarker(rMarker) { } diff --git a/drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx b/drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx index 7c69ab687675..6299e185083c 100644 --- a/drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/pointarrayprimitive2d.cxx @@ -27,9 +27,9 @@ using namespace com::sun::star; namespace drawinglayer::primitive2d { PointArrayPrimitive2D::PointArrayPrimitive2D( - const std::vector< basegfx::B2DPoint >& rPositions, + std::vector< basegfx::B2DPoint >&& rPositions, const basegfx::BColor& rRGBColor) - : maPositions(rPositions), + : maPositions(std::move(rPositions)), maRGBColor(rRGBColor) { } diff --git a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx index f723979e74be..503d07688ecd 100644 --- a/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/svggradientprimitive2d.cxx @@ -343,13 +343,13 @@ namespace drawinglayer::primitive2d SvgGradientHelper::SvgGradientHelper( const basegfx::B2DHomMatrix& rGradientTransform, const basegfx::B2DPolyPolygon& rPolyPolygon, - const SvgGradientEntryVector& rGradientEntries, + SvgGradientEntryVector&& rGradientEntries, const basegfx::B2DPoint& rStart, bool bUseUnitCoordinates, SpreadMethod aSpreadMethod) : maGradientTransform(rGradientTransform), maPolyPolygon(rPolyPolygon), - maGradientEntries(rGradientEntries), + maGradientEntries(std::move(rGradientEntries)), maStart(rStart), maSpreadMethod(aSpreadMethod), mbPreconditionsChecked(false), @@ -561,12 +561,12 @@ namespace drawinglayer::primitive2d SvgLinearGradientPrimitive2D::SvgLinearGradientPrimitive2D( const basegfx::B2DHomMatrix& rGradientTransform, const basegfx::B2DPolyPolygon& rPolyPolygon, - const SvgGradientEntryVector& rGradientEntries, + SvgGradientEntryVector&& rGradientEntries, const basegfx::B2DPoint& rStart, const basegfx::B2DPoint& rEnd, bool bUseUnitCoordinates, SpreadMethod aSpreadMethod) - : SvgGradientHelper(rGradientTransform, rPolyPolygon, rGradientEntries, rStart, bUseUnitCoordinates, aSpreadMethod), + : SvgGradientHelper(rGradientTransform, rPolyPolygon, std::move(rGradientEntries), rStart, bUseUnitCoordinates, aSpreadMethod), maEnd(rEnd) { } @@ -787,13 +787,13 @@ namespace drawinglayer::primitive2d SvgRadialGradientPrimitive2D::SvgRadialGradientPrimitive2D( const basegfx::B2DHomMatrix& rGradientTransform, const basegfx::B2DPolyPolygon& rPolyPolygon, - const SvgGradientEntryVector& rGradientEntries, + SvgGradientEntryVector&& rGradientEntries, const basegfx::B2DPoint& rStart, double fRadius, bool bUseUnitCoordinates, SpreadMethod aSpreadMethod, const basegfx::B2DPoint* pFocal) - : SvgGradientHelper(rGradientTransform, rPolyPolygon, rGradientEntries, rStart, bUseUnitCoordinates, aSpreadMethod), + : SvgGradientHelper(rGradientTransform, rPolyPolygon, std::move(rGradientEntries), rStart, bUseUnitCoordinates, aSpreadMethod), mfRadius(fRadius), maFocal(rStart), maFocalVector(0.0, 0.0), diff --git a/drawinglayer/source/primitive2d/textbreakuphelper.cxx b/drawinglayer/source/primitive2d/textbreakuphelper.cxx index 3b53d18a6e8a..9c4424b8d01e 100644 --- a/drawinglayer/source/primitive2d/textbreakuphelper.cxx +++ b/drawinglayer/source/primitive2d/textbreakuphelper.cxx @@ -136,7 +136,7 @@ namespace drawinglayer::primitive2d mrSource.getText(), nIndex, nLength, - aNewDXArray, + std::move(aNewDXArray), mrSource.getFontAttribute(), mrSource.getLocale(), mrSource.getFontColor(), @@ -167,7 +167,7 @@ namespace drawinglayer::primitive2d mrSource.getText(), nIndex, nLength, - aNewDXArray, + std::move(aNewDXArray), mrSource.getFontAttribute(), mrSource.getLocale(), mrSource.getFontColor())); diff --git a/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx b/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx index 7c11edfc14dc..10cf07b4a8c0 100644 --- a/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/textdecoratedprimitive2d.cxx @@ -45,7 +45,7 @@ namespace drawinglayer::primitive2d rText, nTextPosition, nTextLength, - rDXArray, + std::vector(rDXArray), rFontAttribute, getLocale(), getFontColor()))); @@ -307,7 +307,7 @@ namespace drawinglayer::primitive2d const OUString& rText, sal_Int32 nTextPosition, sal_Int32 nTextLength, - const std::vector< double >& rDXArray, + std::vector< double >&& rDXArray, const attribute::FontAttribute& rFontAttribute, const css::lang::Locale& rLocale, const basegfx::BColor& rFontColor, @@ -326,7 +326,7 @@ namespace drawinglayer::primitive2d bool bEmphasisMarkBelow, TextRelief eTextRelief, bool bShadow) - : TextSimplePortionPrimitive2D(rNewTransform, rText, nTextPosition, nTextLength, rDXArray, rFontAttribute, rLocale, rFontColor, false, 0, rFillColor), + : TextSimplePortionPrimitive2D(rNewTransform, rText, nTextPosition, nTextLength, std::move(rDXArray), rFontAttribute, rLocale, rFontColor, false, 0, rFillColor), maOverlineColor(rOverlineColor), maTextlineColor(rTextlineColor), meFontOverline(eFontOverline), diff --git a/drawinglayer/source/primitive2d/textlineprimitive2d.cxx b/drawinglayer/source/primitive2d/textlineprimitive2d.cxx index f791d9e63598..ea23ad25b684 100644 --- a/drawinglayer/source/primitive2d/textlineprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/textlineprimitive2d.cxx @@ -177,7 +177,7 @@ namespace drawinglayer::primitive2d aDoubleArray.push_back(static_cast<double>(*p) * fHeight); } - aStrokeAttribute = attribute::StrokeAttribute(aDoubleArray); + aStrokeAttribute = attribute::StrokeAttribute(std::move(aDoubleArray)); } // create base polygon and new primitive diff --git a/drawinglayer/source/primitive2d/textprimitive2d.cxx b/drawinglayer/source/primitive2d/textprimitive2d.cxx index 15b0868ee3fb..b86e7acc20e7 100644 --- a/drawinglayer/source/primitive2d/textprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/textprimitive2d.cxx @@ -200,7 +200,7 @@ void TextSimplePortionPrimitive2D::create2DDecomposition( TextSimplePortionPrimitive2D::TextSimplePortionPrimitive2D( const basegfx::B2DHomMatrix& rNewTransform, const OUString& rText, sal_Int32 nTextPosition, - sal_Int32 nTextLength, const std::vector<double>& rDXArray, + sal_Int32 nTextLength, std::vector<double>&& rDXArray, const attribute::FontAttribute& rFontAttribute, const css::lang::Locale& rLocale, const basegfx::BColor& rFontColor, bool bFilled, tools::Long nWidthToFill, const Color& rTextFillColor) @@ -208,7 +208,7 @@ TextSimplePortionPrimitive2D::TextSimplePortionPrimitive2D( , maText(rText) , mnTextPosition(nTextPosition) , mnTextLength(nTextLength) - , maDXArray(rDXArray) + , maDXArray(std::move(rDXArray)) , maFontAttribute(rFontAttribute) , maLocale(rLocale) , maFontColor(rFontColor) diff --git a/drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx b/drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx index afcb3f1abeae..1c4983a87c18 100644 --- a/drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/textstrikeoutprimitive2d.cxx @@ -94,7 +94,7 @@ namespace drawinglayer::primitive2d aStrikeoutString.makeStringAndClear(), 0, len, - aDXArray, + std::move(aDXArray), getFontAttribute(), getLocale(), getFontColor())); diff --git a/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx b/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx index e8d197e1a1e9..ec6bfaf3c8a4 100644 --- a/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx +++ b/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx @@ -137,7 +137,7 @@ namespace drawinglayer::primitive3d // create line and stroke attribute const attribute::LineAttribute aLineAttribute(rLine.getColor(), rLine.getWidth(), rLine.getJoin(), rLine.getCap()); - const attribute::StrokeAttribute aStrokeAttribute(rLine.getDotDashArray(), rLine.getFullDotDashLen()); + const attribute::StrokeAttribute aStrokeAttribute(std::vector(rLine.getDotDashArray()), rLine.getFullDotDashLen()); // create primitives Primitive3DContainer aRetval(aScaledPolyPolygon.count()); diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index c850ff32e900..7ea03c9afd0c 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -495,7 +495,7 @@ std::unique_ptr<SvtGraphicStroke> VclMetafileProcessor2D::impTryToCreateSvtGraph pRetval.reset( new SvtGraphicStroke(tools::Polygon(aLocalPolygon), tools::PolyPolygon(aStartArrow), tools::PolyPolygon(aEndArrow), mfCurrentUnifiedTransparence, - fLineWidth, eCap, eJoin, fMiterLength, aDashArray)); + fLineWidth, eCap, eJoin, fMiterLength, std::move(aDashArray))); } return pRetval; diff --git a/drawinglayer/source/tools/emfphelperdata.cxx b/drawinglayer/source/tools/emfphelperdata.cxx index 6dc0d0020fa3..d2d082424493 100644 --- a/drawinglayer/source/tools/emfphelperdata.cxx +++ b/drawinglayer/source/tools/emfphelperdata.cxx @@ -546,16 +546,16 @@ namespace emfplushelper case EmfPlusLineStyleSolid: // do nothing special, use default stroke attribute break; case EmfPlusLineStyleDash: - aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(dash); + aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(std::vector(dash)); break; case EmfPlusLineStyleDot: - aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(dot); + aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(std::vector(dot)); break; case EmfPlusLineStyleDashDot: - aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(dashdot); + aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(std::vector(dashdot)); break; case EmfPlusLineStyleDashDotDot: - aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(dashdotdot); + aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(std::vector(dashdotdot)); break; } } @@ -568,7 +568,7 @@ namespace emfplushelper // convert from float to double and multiply with the adjusted pen width aPattern[i] = maMapTransform.get(1, 1) * pen->penWidth * pen->dashPattern[i]; } - aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(aPattern); + aStrokeAttribute = drawinglayer::attribute::StrokeAttribute(std::move(aPattern)); } if (!pen->GetColor().IsTransparent()) @@ -923,7 +923,7 @@ namespace emfplushelper new drawinglayer::primitive2d::SvgLinearGradientPrimitive2D( aTextureTransformation, polygon, - aVector, + std::move(aVector), aStartPoint, aEndPoint, false, // do not use UnitCoordinates @@ -939,7 +939,7 @@ namespace emfplushelper new drawinglayer::primitive2d::SvgRadialGradientPrimitive2D( aTextureTransformation, polygon, - aVector, + std::move(aVector), aCenterPoint, 0.5, // relative radius true, // use UnitCoordinates to stretch the gradient @@ -1689,7 +1689,7 @@ namespace emfplushelper text, 0, // text always starts at 0 stringLength, - emptyVector, // EMF-PLUS has no DX-array + std::move(emptyVector), // EMF-PLUS has no DX-array fontAttribute, locale, color.getBColor(), // Font Color @@ -1708,7 +1708,7 @@ namespace emfplushelper text, 0, // text always starts at 0 stringLength, - emptyVector, // EMF-PLUS has no DX-array + std::move(emptyVector), // EMF-PLUS has no DX-array fontAttribute, locale, color.getBColor()); @@ -2133,7 +2133,6 @@ namespace emfplushelper false); // BiDiStrong const Color color = EMFPGetBrushColorOrARGBColor(flags, brushIndexOrColor); - std::vector<double> aDXArray; // dummy for DX array (not used) // generate TextSimplePortionPrimitive2Ds or TextDecoratedPortionPrimitive2D // for all portions of text with the same charsPosY values @@ -2146,7 +2145,7 @@ namespace emfplushelper aLength++; // generate the DX-Array - aDXArray.clear(); + std::vector<double> aDXArray; for (size_t i = 0; i < aLength - 1; i++) { aDXArray.push_back(charsPosX[pos + i + 1] - charsPosX[pos]); @@ -2169,7 +2168,7 @@ namespace emfplushelper text, pos, // take character at current pos aLength, // use determined length - aDXArray, // generated DXArray + std::move(aDXArray), // generated DXArray fontAttribute, Application::GetSettings().GetLanguageTag().getLocale(), color.getBColor(), @@ -2188,7 +2187,7 @@ namespace emfplushelper text, pos, // take character at current pos aLength, // use determined length - aDXArray, // generated DXArray + std::move(aDXArray), // generated DXArray fontAttribute, Application::GetSettings().GetLanguageTag().getLocale(), color.getBColor()); diff --git a/drawinglayer/source/tools/wmfemfhelper.cxx b/drawinglayer/source/tools/wmfemfhelper.cxx index f7c01f3330c1..0bfe1276eb26 100644 --- a/drawinglayer/source/tools/wmfemfhelper.cxx +++ b/drawinglayer/source/tools/wmfemfhelper.cxx @@ -447,7 +447,7 @@ namespace wmfemfhelper { rTarget.append( new drawinglayer::primitive2d::PointArrayPrimitive2D( - rPositions, + std::vector(rPositions), rBColor)); } else @@ -461,7 +461,7 @@ namespace wmfemfhelper rTarget.append( new drawinglayer::primitive2d::PointArrayPrimitive2D( - aPositions, + std::move(aPositions), rBColor)); } } @@ -544,7 +544,7 @@ namespace wmfemfhelper const double fAccumulated(std::accumulate(fDotDashArray.begin(), fDotDashArray.end(), 0.0)); const drawinglayer::attribute::StrokeAttribute aStrokeAttribute( - fDotDashArray, + std::move(fDotDashArray), fAccumulated); rTarget.append( @@ -1184,7 +1184,7 @@ namespace wmfemfhelper rText, nTextStart, nTextLength, - rDXArray, + std::vector(rDXArray), aFontAttribute, aLocale, aFontColor, @@ -1212,7 +1212,7 @@ namespace wmfemfhelper rText, nTextStart, nTextLength, - rDXArray, + std::vector(rDXArray), aFontAttribute, aLocale, aFontColor); diff --git a/include/drawinglayer/attribute/sdrlightingattribute3d.hxx b/include/drawinglayer/attribute/sdrlightingattribute3d.hxx index 95ef197b98fd..d7557ebbd45a 100644 --- a/include/drawinglayer/attribute/sdrlightingattribute3d.hxx +++ b/include/drawinglayer/attribute/sdrlightingattribute3d.hxx @@ -53,7 +53,7 @@ namespace drawinglayer::attribute /// constructors/assignmentoperator/destructor SdrLightingAttribute( const basegfx::BColor& rAmbientLight, - const ::std::vector< Sdr3DLightAttribute >& rLightVector); + std::vector< Sdr3DLightAttribute >&& rLightVector); SdrLightingAttribute(); SdrLightingAttribute(const SdrLightingAttribute& rCandidate); SdrLightingAttribute(SdrLightingAttribute&& rCandidate); diff --git a/include/drawinglayer/attribute/sdrlineattribute.hxx b/include/drawinglayer/attribute/sdrlineattribute.hxx index e638c2fd38ee..2fa9c39f0938 100644 --- a/include/drawinglayer/attribute/sdrlineattribute.hxx +++ b/include/drawinglayer/attribute/sdrlineattribute.hxx @@ -56,7 +56,7 @@ namespace drawinglayer::attribute double fTransparence, const basegfx::BColor& rColor, css::drawing::LineCap eCap, - const ::std::vector< double >& rDotDashArray, + std::vector< double >&& rDotDashArray, double fFullDotDashLen); SdrLineAttribute(); SdrLineAttribute(const SdrLineAttribute&); diff --git a/include/drawinglayer/attribute/strokeattribute.hxx b/include/drawinglayer/attribute/strokeattribute.hxx index d5d825c54710..163a137cba82 100644 --- a/include/drawinglayer/attribute/strokeattribute.hxx +++ b/include/drawinglayer/attribute/strokeattribute.hxx @@ -40,8 +40,7 @@ private: public: /// constructors/assignmentoperator/destructor - explicit StrokeAttribute(const ::std::vector<double>& rDotDashArray, - double fFullDotDashLen = 0.0); + explicit StrokeAttribute(std::vector<double>&& rDotDashArray, double fFullDotDashLen = 0.0); StrokeAttribute(); StrokeAttribute(const StrokeAttribute&); StrokeAttribute(StrokeAttribute&&); diff --git a/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx b/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx index 1dc857ec357e..fe4580d079a4 100644 --- a/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/borderlineprimitive2d.hxx @@ -113,7 +113,7 @@ private: public: /// simplified constructor for BorderLine with single edge BorderLinePrimitive2D(const basegfx::B2DPoint& rStart, const basegfx::B2DPoint& rEnd, - const std::vector<BorderLine>& rBorderLines, + std::vector<BorderLine>&& rBorderLines, const drawinglayer::attribute::StrokeAttribute& rStrokeAttribute); /// data read access diff --git a/include/drawinglayer/primitive2d/markerarrayprimitive2d.hxx b/include/drawinglayer/primitive2d/markerarrayprimitive2d.hxx index 1e09278fe62d..40f6236cf218 100644 --- a/include/drawinglayer/primitive2d/markerarrayprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/markerarrayprimitive2d.hxx @@ -57,7 +57,7 @@ namespace drawinglayer::primitive2d public: /// constructor MarkerArrayPrimitive2D( - const std::vector< basegfx::B2DPoint >& rPositions, + std::vector< basegfx::B2DPoint >&& rPositions, const BitmapEx& rMarker); /// data read access diff --git a/include/drawinglayer/primitive2d/pointarrayprimitive2d.hxx b/include/drawinglayer/primitive2d/pointarrayprimitive2d.hxx index 7e516555162a..a2eb5f611d6e 100644 --- a/include/drawinglayer/primitive2d/pointarrayprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/pointarrayprimitive2d.hxx @@ -52,7 +52,7 @@ namespace drawinglayer::primitive2d public: /// constructor PointArrayPrimitive2D( - const std::vector< basegfx::B2DPoint >& rPositions, + std::vector< basegfx::B2DPoint >&& rPositions, const basegfx::BColor& rRGBColor); /// data read access diff --git a/include/drawinglayer/primitive2d/svggradientprimitive2d.hxx b/include/drawinglayer/primitive2d/svggradientprimitive2d.hxx index f6ed8e8b1508..78667f2d06e3 100644 --- a/include/drawinglayer/primitive2d/svggradientprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/svggradientprimitive2d.hxx @@ -149,7 +149,7 @@ namespace drawinglayer::primitive2d SvgGradientHelper( const basegfx::B2DHomMatrix& rGradientTransform, const basegfx::B2DPolyPolygon& rPolyPolygon, - const SvgGradientEntryVector& rGradientEntries, + SvgGradientEntryVector&& rGradientEntries, const basegfx::B2DPoint& rStart, bool bUseUnitCoordinates, SpreadMethod aSpreadMethod); @@ -192,7 +192,7 @@ namespace drawinglayer::primitive2d SvgLinearGradientPrimitive2D( const basegfx::B2DHomMatrix& rGradientTransform, const basegfx::B2DPolyPolygon& rPolyPolygon, - const SvgGradientEntryVector& rGradientEntries, + SvgGradientEntryVector&& rGradientEntries, const basegfx::B2DPoint& rStart, const basegfx::B2DPoint& rEnd, bool bUseUnitCoordinates, @@ -244,7 +244,7 @@ namespace drawinglayer::primitive2d SvgRadialGradientPrimitive2D( const basegfx::B2DHomMatrix& rGradientTransform, const basegfx::B2DPolyPolygon& rPolyPolygon, - const SvgGradientEntryVector& rGradientEntries, + SvgGradientEntryVector&& rGradientEntries, const basegfx::B2DPoint& rStart, double fRadius, bool bUseUnitCoordinates, diff --git a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx index 8c852b72246a..8ff500b77efe 100644 --- a/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/textdecoratedprimitive2d.hxx @@ -76,7 +76,7 @@ namespace drawinglayer::primitive2d const OUString& rText, sal_Int32 nTextPosition, sal_Int32 nTextLength, - const ::std::vector< double >& rDXArray, + std::vector< double >&& rDXArray, const attribute::FontAttribute& rFontAttribute, const css::lang::Locale& rLocale, const basegfx::BColor& rFontColor, diff --git a/include/drawinglayer/primitive2d/textprimitive2d.hxx b/include/drawinglayer/primitive2d/textprimitive2d.hxx index 22b64928acd4..1c23edafd0ad 100644 --- a/include/drawinglayer/primitive2d/textprimitive2d.hxx +++ b/include/drawinglayer/primitive2d/textprimitive2d.hxx @@ -138,7 +138,7 @@ public: /// constructor TextSimplePortionPrimitive2D(const basegfx::B2DHomMatrix& rNewTransform, const OUString& rText, sal_Int32 nTextPosition, sal_Int32 nTextLength, - const ::std::vector<double>& rDXArray, + std::vector<double>&& rDXArray, const attribute::FontAttribute& rFontAttribute, const css::lang::Locale& rLocale, const basegfx::BColor& rFontColor, bool bFilled = false, diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index 50fe9e93b755..d332e8cfb65f 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -265,7 +265,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewRedirector::createRedirected const double fFullDotDashLen(::std::accumulate(aDotDashArray.begin(), aDotDashArray.end(), 0.0)); const drawinglayer::attribute::LineAttribute aLine(aRGBColor); - const drawinglayer::attribute::StrokeAttribute aStroke(aDotDashArray, fFullDotDashLen); + const drawinglayer::attribute::StrokeAttribute aStroke(std::move(aDotDashArray), fFullDotDashLen); // create primitive and add const drawinglayer::primitive2d::Primitive2DReference xRef(new drawinglayer::primitive2d::PolygonStrokePrimitive2D( @@ -402,7 +402,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewRedirector::createRedirected fPosX, fPosY)); // create DXTextArray (can be empty one) - const ::std::vector< double > aDXArray{}; + ::std::vector< double > aDXArray{}; // create locale; this may need some more information in the future const css::lang::Locale aLocale; @@ -414,7 +414,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewRedirector::createRedirected aObjectString, 0, nTextLength, - aDXArray, + std::move(aDXArray), aFontAttribute, aLocale, aRGBColor)); diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx index d561a447384f..af03919ccde3 100644 --- a/svgio/source/svgreader/svgcharacternode.cxx +++ b/svgio/source/svgreader/svgcharacternode.cxx @@ -431,7 +431,7 @@ namespace svgio::svgreader getText(), nIndex, nLength, - aTextArray, + std::move(aTextArray), aFontAttribute, aLocale, aFill, @@ -459,7 +459,7 @@ namespace svgio::svgreader getText(), nIndex, nLength, - aTextArray, + std::move(aTextArray), aFontAttribute, aLocale, aFill); diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 3ad148c4624c..62133fbb11fb 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -398,7 +398,7 @@ namespace svgio::svgreader new drawinglayer::primitive2d::SvgLinearGradientPrimitive2D( aGradientTransform, rPath, - aSvgGradientEntryVector, + std::move(aSvgGradientEntryVector), aStart, aEnd, SvgUnits::userSpaceOnUse != rFillGradient.getGradientUnits(), @@ -459,7 +459,7 @@ namespace svgio::svgreader new drawinglayer::primitive2d::SvgRadialGradientPrimitive2D( aGradientTransform, rPath, - aSvgGradientEntryVector, + std::move(aSvgGradientEntryVector), aStart, fRadius, SvgUnits::userSpaceOnUse != rFillGradient.getGradientUnits(), @@ -734,7 +734,7 @@ namespace svgio::svgreader } else { - const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(aDashArray); + const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(std::move(aDashArray)); aNewLinePrimitive = new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D( rPath, diff --git a/svx/source/sdr/attribute/sdrformtextattribute.cxx b/svx/source/sdr/attribute/sdrformtextattribute.cxx index 96f40ce608dc..cdec873b0d26 100644 --- a/svx/source/sdr/attribute/sdrformtextattribute.cxx +++ b/svx/source/sdr/attribute/sdrformtextattribute.cxx @@ -135,7 +135,7 @@ namespace } } - return drawinglayer::attribute::StrokeAttribute(aDotDashArray, fFullDotDashLen); + return drawinglayer::attribute::StrokeAttribute(std::move(aDotDashArray), fFullDotDashLen); } } // end of anonymous namespace diff --git a/svx/source/sdr/contact/viewcontactofsdrobj.cxx b/svx/source/sdr/contact/viewcontactofsdrobj.cxx index 16a907cb581d..16c54ec069e7 100644 --- a/svx/source/sdr/contact/viewcontactofsdrobj.cxx +++ b/svx/source/sdr/contact/viewcontactofsdrobj.cxx @@ -154,7 +154,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewContactOfSdrObj::createGlueP { const drawinglayer::primitive2d::Primitive2DReference xReference( new drawinglayer::primitive2d::MarkerArrayPrimitive2D( - aGluepointVector, SdrHdl::createGluePointBitmap())); + std::move(aGluepointVector), SdrHdl::createGluePointBitmap())); xRetval = drawinglayer::primitive2d::Primitive2DContainer{ xReference }; } } diff --git a/svx/source/sdr/primitive2d/sdrattributecreator.cxx b/svx/source/sdr/primitive2d/sdrattributecreator.cxx index bfc76b41231d..7193dc4a663c 100644 --- a/svx/source/sdr/primitive2d/sdrattributecreator.cxx +++ b/svx/source/sdr/primitive2d/sdrattributecreator.cxx @@ -275,7 +275,7 @@ namespace drawinglayer::primitive2d static_cast<double>(nTransparence) * 0.01, aColor.getBColor(), eCap, - aDotDashArray, + std::move(aDotDashArray), fFullDotDashLen); } } @@ -1029,7 +1029,7 @@ namespace drawinglayer::primitive2d const Color aAmbientValue(rSet.Get(SDRATTR_3DSCENE_AMBIENTCOLOR).GetValue()); const basegfx::BColor aAmbientLight(aAmbientValue.getBColor()); - return attribute::SdrLightingAttribute(aAmbientLight, aLightVector); + return attribute::SdrLightingAttribute(aAmbientLight, std::move(aLightVector)); } void calculateRelativeCornerRadius(sal_Int32 nRadius, const basegfx::B2DRange& rObjectRange, double& rfCornerRadiusX, double& rfCornerRadiusY) diff --git a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx index 7c04f1c54e0a..dd76b03eb251 100644 --- a/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx +++ b/svx/source/sdr/primitive2d/sdrdecompositiontools.cxx @@ -222,7 +222,7 @@ basegfx::B2DRange getTextAnchorRange(const attribute::SdrTextAttribute& rText, { // create line and stroke attribute const attribute::LineAttribute aLineAttribute(rLine.getColor(), rLine.getWidth(), rLine.getJoin(), rLine.getCap()); - const attribute::StrokeAttribute aStrokeAttribute(rLine.getDotDashArray(), rLine.getFullDotDashLen()); + const attribute::StrokeAttribute aStrokeAttribute(std::vector(rLine.getDotDashArray()), rLine.getFullDotDashLen()); rtl::Reference<BasePrimitive2D> pNewLinePrimitive; if(!rPolygon.isClosed() && !rStroke.isDefault()) diff --git a/svx/source/sdr/primitive2d/sdrframeborderprimitive2d.cxx b/svx/source/sdr/primitive2d/sdrframeborderprimitive2d.cxx index 138c98a5f5bb..8b40bc78fab3 100644 --- a/svx/source/sdr/primitive2d/sdrframeborderprimitive2d.cxx +++ b/svx/source/sdr/primitive2d/sdrframeborderprimitive2d.cxx @@ -597,8 +597,8 @@ namespace } static const double fPatScFact(10.0); // 10.0 multiply, see old code - const std::vector<double> aDashing(svtools::GetLineDashing(rBorder.Type(), rBorder.PatternScale() * fPatScFact)); - const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(aDashing); + std::vector<double> aDashing(svtools::GetLineDashing(rBorder.Type(), rBorder.PatternScale() * fPatScFact)); + const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(std::move(aDashing)); const basegfx::B2DPoint aStart(rOrigin + (aPerpendX * aCombination.getRefModeOffset())); rTarget.append( @@ -606,7 +606,7 @@ namespace new drawinglayer::primitive2d::BorderLinePrimitive2D( aStart, aStart + rX, - aBorderlines, + std::move(aBorderlines), aStrokeAttribute))); } diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 525cbb3360a2..46ff14f61fa4 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -249,7 +249,7 @@ drawinglayer::primitive2d::Primitive2DContainer SdrDragEntryPointGlueDrag::creat } drawinglayer::primitive2d::Primitive2DReference aMarkerArrayPrimitive2D( - new drawinglayer::primitive2d::MarkerArrayPrimitive2D(aTransformedPositions, + new drawinglayer::primitive2d::MarkerArrayPrimitive2D(std::move(aTransformedPositions), drawinglayer::primitive2d::createDefaultCross_3x3(aColor))); aRetval = drawinglayer::primitive2d::Primitive2DContainer { aMarkerArrayPrimitive2D }; @@ -257,7 +257,7 @@ drawinglayer::primitive2d::Primitive2DContainer SdrDragEntryPointGlueDrag::creat else { drawinglayer::primitive2d::Primitive2DReference aMarkerArrayPrimitive2D( - new drawinglayer::primitive2d::MarkerArrayPrimitive2D(aTransformedPositions, + new drawinglayer::primitive2d::MarkerArrayPrimitive2D(std::move(aTransformedPositions), SdrHdl::createGluePointBitmap())); aRetval = drawinglayer::primitive2d::Primitive2DContainer { aMarkerArrayPrimitive2D }; } diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx index a27db44eca73..5c225cf7948b 100644 --- a/svx/source/svdraw/svdotextdecomposition.cxx +++ b/svx/source/svdraw/svdotextdecomposition.cxx @@ -314,7 +314,7 @@ namespace caseMappedText, rInfo.mnTextStart, rInfo.mnTextLen, - aDXArray, + std::vector(aDXArray), aFontAttribute, rInfo.mpLocale ? *rInfo.mpLocale : css::lang::Locale(), aBFontColor, @@ -342,7 +342,7 @@ namespace caseMappedText, rInfo.mnTextStart, rInfo.mnTextLen, - aDXArray, + std::vector(aDXArray), aFontAttribute, rInfo.mpLocale ? *rInfo.mpLocale : css::lang::Locale(), aBFontColor, diff --git a/svx/source/svdraw/svdotextpathdecomposition.cxx b/svx/source/svdraw/svdotextpathdecomposition.cxx index 66476eecbc75..65f7ac1eb505 100644 --- a/svx/source/svdraw/svdotextpathdecomposition.cxx +++ b/svx/source/svdraw/svdotextpathdecomposition.cxx @@ -502,7 +502,7 @@ namespace pCandidate->getText(), nPortionIndex, nNextGlyphLen, - aNewDXArray, + std::vector(aNewDXArray), aCandidateFontAttribute, pCandidate->getLocale(), aRGBShadowColor) ); @@ -519,7 +519,7 @@ namespace pCandidate->getText(), nPortionIndex, nNextGlyphLen, - aNewDXArray, + std::move(aNewDXArray), aCandidateFontAttribute, pCandidate->getLocale(), aRGBColor) ); diff --git a/svx/source/xoutdev/xtabdash.cxx b/svx/source/xoutdev/xtabdash.cxx index 20e75725e7a4..e7971c869c21 100644 --- a/svx/source/xoutdev/xtabdash.cxx +++ b/svx/source/xoutdev/xtabdash.cxx @@ -122,7 +122,7 @@ BitmapEx XDashList::ImpCreateBitmapForXDash(const XDash* pDash) } const drawinglayer::attribute::StrokeAttribute aStrokeAttribute( - aDotDashArray, + std::move(aDotDashArray), fFullDotDashLen); // create LinePrimitive diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 11ca12857070..554ddc4bbc44 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -3603,7 +3603,7 @@ static drawinglayer::primitive2d::Primitive2DContainer lcl_CreateDashedIndicator new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D ( basegfx::B2DPolyPolygon( aLinePolygon ), drawinglayer::attribute::LineAttribute( aColor ), - drawinglayer::attribute::StrokeAttribute( aStrokePattern ) ); + drawinglayer::attribute::StrokeAttribute( std::move(aStrokePattern) ) ); return aSeq; diff --git a/sw/source/uibase/docvw/AnchorOverlayObject.cxx b/sw/source/uibase/docvw/AnchorOverlayObject.cxx index f79dc813984d..1405021c6dfa 100644 --- a/sw/source/uibase/docvw/AnchorOverlayObject.cxx +++ b/sw/source/uibase/docvw/AnchorOverlayObject.cxx @@ -128,7 +128,7 @@ void AnchorPrimitive::create2DDecomposition( aDotDashArray.push_back(fDistance); const drawinglayer::attribute::StrokeAttribute aStrokeAttribute( - aDotDashArray, + std::move(aDotDashArray), fDistance + fDashLen); const drawinglayer::primitive2d::Primitive2DReference aStrokedLine( diff --git a/sw/source/uibase/docvw/DashedLine.cxx b/sw/source/uibase/docvw/DashedLine.cxx index 629f77330aa7..4b2d04dc72ed 100644 --- a/sw/source/uibase/docvw/DashedLine.cxx +++ b/sw/source/uibase/docvw/DashedLine.cxx @@ -83,7 +83,7 @@ void SwDashedLine::Paint(vcl::RenderContext& rRenderContext, const tools::Rectan new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D( basegfx::B2DPolyPolygon(aPolygon), drawinglayer::attribute::LineAttribute(m_pColorFn().getBColor()), - drawinglayer::attribute::StrokeAttribute(aStrokePattern)); + drawinglayer::attribute::StrokeAttribute(std::move(aStrokePattern))); pProcessor->process(aSeq); } |