summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-12-07 14:56:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-08 07:46:32 +0100
commit61470af0c78a8f01377e8d5001bbf2362a87e687 (patch)
tree80fd03cd36f13a87e01c968b3b8fbf70c2e9bfde /svx
parentfe6a140a537eda1b6703c44ff5ee49d2ba875b81 (diff)
remove some unnecessary copying
the method returns a const& Change-Id: I2b031b930c6a1280d25eab2d6a659102d2e28972 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126478 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/contact/viewobjectcontact.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx b/svx/source/sdr/contact/viewobjectcontact.cxx
index bbbc1fa3f113..a4c9054aea1e 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -193,7 +193,7 @@ const basegfx::B2DRange& ViewObjectContact::getObjectRange() const
{
// if range is not computed (new or LazyInvalidate objects), force it
const DisplayInfo aDisplayInfo;
- const drawinglayer::primitive2d::Primitive2DContainer xSequence(getPrimitive2DSequence(aDisplayInfo));
+ const drawinglayer::primitive2d::Primitive2DContainer& xSequence(getPrimitive2DSequence(aDisplayInfo));
if(!xSequence.empty())
{
@@ -418,7 +418,7 @@ void ViewObjectContact::getPrimitive2DSequenceHierarchy(DisplayInfo& rDisplayInf
if(!isPrimitiveVisible(rDisplayInfo))
return;
- drawinglayer::primitive2d::Primitive2DContainer xRetval = getPrimitive2DSequence(rDisplayInfo);
+ const drawinglayer::primitive2d::Primitive2DContainer& xRetval = getPrimitive2DSequence(rDisplayInfo);
if(xRetval.empty())
return;