summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-22 09:54:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-25 10:04:06 +0200
commit8a843f7e98dfe6bfb04e91e5b16e3a1df18fbf58 (patch)
tree521d82ee0690adc18dd51f2124c57ed3efa72adc /sd
parent0351bec874f7e83c437e485e8d61a41f32718e25 (diff)
loplugin:moveit
make the plugin more conservative, so we see less false+ (although we also miss some possibilities in the process) Change-Id: I91b1806271e7f802d7459834ab7bcc569047da3a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137342 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/annotations/annotationtag.cxx2
-rw-r--r--sd/source/ui/view/DocumentRenderer.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/annotations/annotationtag.cxx b/sd/source/ui/annotations/annotationtag.cxx
index cfd632dcc2bd..12fed3e43208 100644
--- a/sd/source/ui/annotations/annotationtag.cxx
+++ b/sd/source/ui/annotations/annotationtag.cxx
@@ -238,7 +238,7 @@ void AnnotationHdl::CreateB2dIAObject()
aPolyPolygon.append(rPolygon);
pOverlayObject.reset(new sdr::overlay::OverlayPolyPolygon(
- aPolyPolygon,
+ std::move(aPolyPolygon),
rCustomAnnotationMarker.maLineColor,
rCustomAnnotationMarker.mnLineWidth,
rCustomAnnotationMarker.maFillColor));
diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx
index eee1a759e845..8764afd0f85c 100644
--- a/sd/source/ui/view/DocumentRenderer.cxx
+++ b/sd/source/ui/view/DocumentRenderer.cxx
@@ -1547,7 +1547,7 @@ private:
SdrPathObj* pPathObj = new SdrPathObj(
rModel,
SdrObjKind::PathLine,
- aPathPoly);
+ std::move(aPathPoly));
pPathObj->SetMergedItem(XLineStyleItem(drawing::LineStyle_SOLID));
pPathObj->SetMergedItem(XLineColorItem(OUString(), COL_BLACK));