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:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
@@ -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
|
||||||
{
|
{
|
||||||
|
@@ -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())
|
||||||
{
|
{
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user