diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-02-07 08:56:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-02-07 10:33:20 +0100 |
commit | 4ae68d59dcb27532d1b0643a37e65f679f0af0f8 (patch) | |
tree | 470befa10d827e1a971ecd208834eb42187024f2 /svx | |
parent | 839cf255e2670fdf8e974af38432aacf63be4e90 (diff) |
can std::move these Primitive2DContainer values
Change-Id: Id40fdc3915107575eec734de704a52c5fb3715f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163069
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/sdr/contact/viewobjectcontact.cxx | 4 | ||||
-rw-r--r-- | svx/source/sdr/contact/viewobjectcontactofe3dscene.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svddrgmt.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx b/svx/source/sdr/contact/viewobjectcontact.cxx index c962e77eb33c..dfc31cc372e0 100644 --- a/svx/source/sdr/contact/viewobjectcontact.cxx +++ b/svx/source/sdr/contact/viewobjectcontact.cxx @@ -317,11 +317,11 @@ void ViewObjectContact::createPrimitive2DSequence(const DisplayInfo& rDisplayInf // handle GluePoint if(!GetObjectContact().isOutputToPrinter() && GetObjectContact().AreGluePointsVisible()) { - const drawinglayer::primitive2d::Primitive2DContainer xGlue(GetViewContact().createGluePointPrimitive2DSequence()); + drawinglayer::primitive2d::Primitive2DContainer xGlue(GetViewContact().createGluePointPrimitive2DSequence()); if(!xGlue.empty()) { - xRetval.append(xGlue); + xRetval.append(std::move(xGlue)); } } diff --git a/svx/source/sdr/contact/viewobjectcontactofe3dscene.cxx b/svx/source/sdr/contact/viewobjectcontactofe3dscene.cxx index ac7ad90f13bf..9b5adea9f15c 100644 --- a/svx/source/sdr/contact/viewobjectcontactofe3dscene.cxx +++ b/svx/source/sdr/contact/viewobjectcontactofe3dscene.cxx @@ -87,11 +87,11 @@ namespace sdr::contact // handle GluePoint if(!GetObjectContact().isOutputToPrinter() && GetObjectContact().AreGluePointsVisible()) { - const drawinglayer::primitive2d::Primitive2DContainer xGlue(GetViewContact().createGluePointPrimitive2DSequence()); + drawinglayer::primitive2d::Primitive2DContainer xGlue(GetViewContact().createGluePointPrimitive2DSequence()); if(!xGlue.empty()) { - xRetval.append(xGlue); + xRetval.append(std::move(xGlue)); } } diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index 1a8609c6b865..101e4369d40e 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -770,12 +770,12 @@ void SdrDragMethod::CreateOverlayGeometry( if(DoAddConnectorOverlays()) { - const drawinglayer::primitive2d::Primitive2DContainer aConnectorOverlays(AddConnectorOverlays()); + drawinglayer::primitive2d::Primitive2DContainer aConnectorOverlays(AddConnectorOverlays()); if(!aConnectorOverlays.empty()) { // add connector overlays to transparent part - aResultTransparent.append(aConnectorOverlays); + aResultTransparent.append(std::move(aConnectorOverlays)); } } |