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:
parent
f4ac99f717
commit
eea7af10d9
@ -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
|
||||
// PolyPolygons for speedup; this is possible for the wanted OR-operation
|
||||
|
@ -136,7 +136,7 @@ namespace basegfx::utils
|
||||
|
||||
@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
|
||||
|
||||
|
@ -148,7 +148,7 @@ namespace svgio::svgreader
|
||||
if(nSize > 1)
|
||||
{
|
||||
// merge to single clipPolyPolygon
|
||||
aClipPolyPolygon = basegfx::utils::mergeToSinglePolyPolygon(rResult);
|
||||
aClipPolyPolygon = basegfx::utils::mergeToSinglePolyPolygon(std::vector(rResult));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -303,7 +303,7 @@ namespace svgio::svgreader
|
||||
|
||||
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(
|
||||
basegfx::utils::mergeToSinglePolyPolygon(
|
||||
rLineFillVector));
|
||||
std::vector(rLineFillVector)));
|
||||
|
||||
if(aMergedArea.count())
|
||||
{
|
||||
|
@ -1070,8 +1070,8 @@ void SkiaSalGraphicsImpl::checkPendingDrawing()
|
||||
{
|
||||
for (basegfx::B2DPolyPolygon& p : polygons)
|
||||
roundPolygonPoints(p);
|
||||
performDrawPolyPolygon(basegfx::utils::mergeToSinglePolyPolygon(polygons), transparency,
|
||||
true);
|
||||
performDrawPolyPolygon(basegfx::utils::mergeToSinglePolyPolygon(std::move(polygons)),
|
||||
transparency, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user