loplugin:moveparam in basegfx

Change-Id: I73414e94358114ff0d475f13855db8c4c493b6f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123334
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2021-10-10 14:40:50 +02:00
parent f4ac99f717
commit eea7af10d9
5 changed files with 8 additions and 8 deletions

View File

@@ -1067,9 +1067,9 @@ namespace basegfx::utils
} }
} }
B2DPolyPolygon mergeToSinglePolyPolygon(const B2DPolyPolygonVector& rInput) B2DPolyPolygon mergeToSinglePolyPolygon(B2DPolyPolygonVector&& rInput)
{ {
B2DPolyPolygonVector aInput(rInput); B2DPolyPolygonVector aInput(std::move(rInput));
// first step: prepareForPolygonOperation and simple merge of non-overlapping // first step: prepareForPolygonOperation and simple merge of non-overlapping
// PolyPolygons for speedup; this is possible for the wanted OR-operation // PolyPolygons for speedup; this is possible for the wanted OR-operation

View File

@@ -136,7 +136,7 @@ namespace basegfx::utils
@return A single tools::PolyPolygon containing the Or-merged result @return A single tools::PolyPolygon containing the Or-merged result
*/ */
BASEGFX_DLLPUBLIC B2DPolyPolygon mergeToSinglePolyPolygon(const B2DPolyPolygonVector& rInput); BASEGFX_DLLPUBLIC B2DPolyPolygon mergeToSinglePolyPolygon(B2DPolyPolygonVector&& rInput);
} // end of namespace basegfx::utils } // end of namespace basegfx::utils

View File

@@ -148,7 +148,7 @@ namespace svgio::svgreader
if(nSize > 1) if(nSize > 1)
{ {
// merge to single clipPolyPolygon // merge to single clipPolyPolygon
aClipPolyPolygon = basegfx::utils::mergeToSinglePolyPolygon(rResult); aClipPolyPolygon = basegfx::utils::mergeToSinglePolyPolygon(std::vector(rResult));
} }
else else
{ {

View File

@@ -303,7 +303,7 @@ namespace svgio::svgreader
if(!aTextFillVector.empty()) if(!aTextFillVector.empty())
{ {
aMergedArea = basegfx::utils::mergeToSinglePolyPolygon(aTextFillVector); aMergedArea = basegfx::utils::mergeToSinglePolyPolygon(std::move(aTextFillVector));
} }
} }
@@ -762,7 +762,7 @@ namespace svgio::svgreader
{ {
const basegfx::B2DPolyPolygon aMergedArea( const basegfx::B2DPolyPolygon aMergedArea(
basegfx::utils::mergeToSinglePolyPolygon( basegfx::utils::mergeToSinglePolyPolygon(
rLineFillVector)); std::vector(rLineFillVector)));
if(aMergedArea.count()) if(aMergedArea.count())
{ {

View File

@@ -1070,8 +1070,8 @@ void SkiaSalGraphicsImpl::checkPendingDrawing()
{ {
for (basegfx::B2DPolyPolygon& p : polygons) for (basegfx::B2DPolyPolygon& p : polygons)
roundPolygonPoints(p); roundPolygonPoints(p);
performDrawPolyPolygon(basegfx::utils::mergeToSinglePolyPolygon(polygons), transparency, performDrawPolyPolygon(basegfx::utils::mergeToSinglePolyPolygon(std::move(polygons)),
true); transparency, true);
} }
} }
} }