[Libreoffice-commits] core.git: svx/source sw/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 16 14:17:33 UTC 2021


 svx/source/sdr/contact/viewobjectcontact.cxx          |    2 +-
 svx/source/sdr/contact/viewobjectcontactofgroup.cxx   |    2 +-
 svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx |    4 ++--
 svx/source/sdr/overlay/overlayobject.cxx              |    2 +-
 sw/source/core/draw/dcontact.cxx                      |    2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit d8103862e78c2bbed18f0da82231d4be576083da
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Aug 16 13:14:10 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Aug 16 16:15:40 2021 +0200

    no need to make a local copy here
    
    Change-Id: I54891bccd13ee3e63a6c737c47754ffaea354692
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120539
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx b/svx/source/sdr/contact/viewobjectcontact.cxx
index e65c2bab1d6e..2720404cb58c 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -418,7 +418,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewObjectContact::getPrimitive2
             // get ranges
             const drawinglayer::geometry::ViewInformation2D& rViewInformation2D(GetObjectContact().getViewInformation2D());
             const basegfx::B2DRange aObjectRange(xRetval.getB2DRange(rViewInformation2D));
-            const basegfx::B2DRange aViewRange(rViewInformation2D.getViewport());
+            const basegfx::B2DRange& aViewRange(rViewInformation2D.getViewport());
 
             // check geometrical visibility
             bool bVisible = aViewRange.isEmpty() || aViewRange.overlaps(aObjectRange);
diff --git a/svx/source/sdr/contact/viewobjectcontactofgroup.cxx b/svx/source/sdr/contact/viewobjectcontactofgroup.cxx
index a6198992a544..ee797e11743b 100644
--- a/svx/source/sdr/contact/viewobjectcontactofgroup.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofgroup.cxx
@@ -68,7 +68,7 @@ namespace sdr::contact
                         // get ranges
                         const drawinglayer::geometry::ViewInformation2D& rViewInformation2D(GetObjectContact().getViewInformation2D());
                         const ::basegfx::B2DRange aObjectRange(xRetval.getB2DRange(rViewInformation2D));
-                        const basegfx::B2DRange aViewRange(rViewInformation2D.getViewport());
+                        const basegfx::B2DRange& aViewRange(rViewInformation2D.getViewport());
 
                         // check geometrical visibility
                         if(!aViewRange.isEmpty() && !aViewRange.overlaps(aObjectRange))
diff --git a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx
index ef973ecea8c8..c6c69d77953f 100644
--- a/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx
+++ b/svx/source/sdr/contact/viewobjectcontactofsdrpage.cxx
@@ -384,7 +384,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewObjectContactOfPageHierarchy
             // get ranges
             const drawinglayer::geometry::ViewInformation2D& rViewInformation2D(GetObjectContact().getViewInformation2D());
             const basegfx::B2DRange aObjectRange(xRetval.getB2DRange(rViewInformation2D));
-            const basegfx::B2DRange aViewRange(rViewInformation2D.getViewport());
+            const basegfx::B2DRange& aViewRange(rViewInformation2D.getViewport());
 
             // check geometrical visibility
             if(!aViewRange.isEmpty() && !aViewRange.overlaps(aObjectRange))
@@ -609,7 +609,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewObjectContactOfSdrPage::getP
             // get ranges
             const drawinglayer::geometry::ViewInformation2D& rViewInformation2D(GetObjectContact().getViewInformation2D());
             const basegfx::B2DRange aObjectRange(xRetval.getB2DRange(rViewInformation2D));
-            const basegfx::B2DRange aViewRange(rViewInformation2D.getViewport());
+            const basegfx::B2DRange& aViewRange(rViewInformation2D.getViewport());
 
             // check geometrical visibility
             if(!aViewRange.isEmpty() && !aViewRange.overlaps(aObjectRange))
diff --git a/svx/source/sdr/overlay/overlayobject.cxx b/svx/source/sdr/overlay/overlayobject.cxx
index 1be8b6f633cc..641ba16a041d 100644
--- a/svx/source/sdr/overlay/overlayobject.cxx
+++ b/svx/source/sdr/overlay/overlayobject.cxx
@@ -133,7 +133,7 @@ namespace sdr::overlay
 
                 if(!rSequence.empty())
                 {
-                    const drawinglayer::geometry::ViewInformation2D aViewInformation2D(getOverlayManager()->getCurrentViewInformation2D());
+                    const drawinglayer::geometry::ViewInformation2D & aViewInformation2D(getOverlayManager()->getCurrentViewInformation2D());
 
                     const_cast< sdr::overlay::OverlayObject* >(this)->maBaseRange =
                         rSequence.getB2DRange(aViewInformation2D);
diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx
index 189430f0363f..3019b3ebba1b 100644
--- a/sw/source/core/draw/dcontact.cxx
+++ b/sw/source/core/draw/dcontact.cxx
@@ -2125,7 +2125,7 @@ namespace sdr::contact
                         {
                             // get ranges
                             const drawinglayer::geometry::ViewInformation2D& rViewInformation2D(rCandidate.GetObjectContact().getViewInformation2D());
-                            const basegfx::B2DRange aViewRange(rViewInformation2D.getViewport());
+                            const basegfx::B2DRange& aViewRange(rViewInformation2D.getViewport());
                             basegfx::B2DRange aObjectRange(rCandidate.getObjectRange());
 
                             // correct with virtual object's offset


More information about the Libreoffice-commits mailing list