summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/paintfrm.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:47:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-24 08:36:27 +0200
commit645db9a2643832e29dbdf904e1cf7b323d273f86 (patch)
treebb799a9a87fb09b5d93972c6a627b1bc0b67ff85 /sw/source/core/layout/paintfrm.cxx
parent2629aac31142449312f77c5843ea209cc810acb4 (diff)
clang-tidy performance-unnecessary-copy-init in sw
Change-Id: I515e3e8ddaee3e3ddc4bf3827fb85f3489e84539 Reviewed-on: https://gerrit.libreoffice.org/62253 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/layout/paintfrm.cxx')
-rw-r--r--sw/source/core/layout/paintfrm.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index f16cde1fc091..0306a1d0d382 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -1739,7 +1739,7 @@ bool DrawFillAttributes(
// tdf#86578 the awful lcl_SubtractFlys hack
if (rPaintRegion.size() > 1 || rPaintRegion[0] != rPaintRegion.GetOrigin())
{
- basegfx::B2DPolyPolygon const maskRegion(rClipState.getClipPoly());
+ basegfx::B2DPolyPolygon const& maskRegion(rClipState.getClipPoly());
primitives.resize(1);
primitives[0] = new drawinglayer::primitive2d::MaskPrimitive2D(
maskRegion, rSequence);
@@ -3859,7 +3859,7 @@ void SwFlyFrame::PaintSwFrame(vcl::RenderContext& rRenderContext, SwRect const&
bool bInGenerateThumbnail = pShell->GetDoc()->GetDocShell()->IsInGenerateAndStoreThumbnail();
if (bInGenerateThumbnail)
{
- SwRect aVisRect = pShell->VisArea();
+ const SwRect& aVisRect = pShell->VisArea();
if (!aVisRect.IsOver(getFrameArea()))
return;
}