summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-12-02 13:43:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-03 10:46:37 +0100
commit3337d210f3121559afc3574a41d821bb2283d773 (patch)
tree60c9a3be6eaac98f1d9e57abab9a8860a8e32540
parent8ef60f89bae290d8c38acacfc792b32176f9afa9 (diff)
avoid some copying in ViewObjectContact
Change-Id: I0d55bffca9d526b97edd9ea5283d0420e675236d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126272 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-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 5da24f86a54d..23ee410628ab 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -367,10 +367,10 @@ drawinglayer::primitive2d::Primitive2DContainer const & ViewObjectContact::getPr
const basegfx::B2DHomMatrix aTranslateGridOffset(
basegfx::utils::createTranslateB2DHomMatrix(
rGridOffset));
- const drawinglayer::primitive2d::Primitive2DReference aEmbed(
+ drawinglayer::primitive2d::Primitive2DReference aEmbed(
new drawinglayer::primitive2d::TransformPrimitive2D(
aTranslateGridOffset,
- drawinglayer::primitive2d::Primitive2DContainer(mxPrimitive2DSequence)));
+ std::move(const_cast< ViewObjectContact* >(this)->mxPrimitive2DSequence)));
// Set values at local data. So for now, the mechanism is to reset some of the
// defining things (mxPrimitive2DSequence, maGridOffset) and re-create the