summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-04-29 13:13:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-04-29 15:43:15 +0200
commit41dbc48a71717d3d4703c707a4491020ecc12b1a (patch)
tree9b310aaddfe132327c3661ce257dd1d0c2bc0413 /svx
parent610d8d3ca470d13159c017cdc3f86310bf5cd1ef (diff)
can stack-allocate this
Change-Id: I53de9926bb3eb662ab6f9065bf1d9190df76c0c6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114879 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/weldeditview.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/weldeditview.cxx b/svx/source/dialog/weldeditview.cxx
index 38d69111c7a0..d59aab1877a6 100644
--- a/svx/source/dialog/weldeditview.cxx
+++ b/svx/source/dialog/weldeditview.cxx
@@ -188,8 +188,8 @@ void WeldEditView::DoPaint(vcl::RenderContext& rRenderContext, const tools::Rect
const SvtOptionsDrawinglayer aSvtOptionsDrawinglayer;
const Color aHighlight(aSvtOptionsDrawinglayer.getHilightColor());
- auto xCursorOverlay = std::make_unique<sdr::overlay::OverlaySelection>(
- sdr::overlay::OverlayType::Transparent, aHighlight, aLogicRanges, true);
+ sdr::overlay::OverlaySelection aCursorOverlay(sdr::overlay::OverlayType::Transparent,
+ aHighlight, aLogicRanges, true);
const drawinglayer::geometry::ViewInformation2D aViewInformation2D(
basegfx::B2DHomMatrix(), rRenderContext.GetViewTransformation(),
@@ -200,7 +200,7 @@ void WeldEditView::DoPaint(vcl::RenderContext& rRenderContext, const tools::Rect
drawinglayer::processor2d::createProcessor2DFromOutputDevice(rRenderContext,
aViewInformation2D));
- xProcessor->process(xCursorOverlay->getOverlayObjectPrimitive2DSequence());
+ xProcessor->process(aCursorOverlay.getOverlayObjectPrimitive2DSequence());
}
rRenderContext.Pop();