diff options
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/contact/objectcontactofpageview.cxx | 3 | ||||
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/sdr/contact/objectcontactofpageview.cxx b/svx/source/sdr/contact/objectcontactofpageview.cxx index 41717d276381..3d234b6fdd65 100644 --- a/svx/source/sdr/contact/objectcontactofpageview.cxx +++ b/svx/source/sdr/contact/objectcontactofpageview.cxx @@ -187,8 +187,7 @@ namespace sdr::contact { // get logic clip range and create discrete one const tools::Rectangle aLogicClipRectangle(rDisplayInfo.GetRedrawArea().GetBoundRect()); - basegfx::B2DRange aLogicClipRange = vcl::unotools::b2DRectangleFromRectangle(aLogicClipRectangle); - basegfx::B2DRange aDiscreteClipRange(aLogicClipRange); + basegfx::B2DRange aDiscreteClipRange = vcl::unotools::b2DRectangleFromRectangle(aLogicClipRectangle); aDiscreteClipRange.transform(rTargetOutDev.GetViewTransformation()); // align the discrete one to discrete boundaries (pixel bounds). Also diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index e31e2bf8a85e..512d7b048bdc 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -841,7 +841,7 @@ XPolygon SdrEdgeObj::ImpCalcEdgeTrack(const XPolygon& rTrack0, SdrObjConnection& XPolygon aXP(ImpCalcEdgeTrack(aPt1,nA1,aBoundRect1,aBewareRect1,aPt2,nA2,aBoundRect2,aBewareRect2,&nQual,&aInfo)); if (nQual<nBestQual) { - aBestXP=aXP; + aBestXP=std::move(aXP); nBestQual=nQual; aBestInfo=aInfo; nBestAuto1=nNum1; |