svx/source/dialog/weldeditview.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 41dbc48a71717d3d4703c707a4491020ecc12b1a
Author:     Noel Grandin <[email protected]>
AuthorDate: Thu Apr 29 13:13:45 2021 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Thu Apr 29 15:43:15 2021 +0200

    can stack-allocate this
    
    Change-Id: I53de9926bb3eb662ab6f9065bf1d9190df76c0c6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114879
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

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();
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to