summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev
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 /svx/source/xoutdev
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 'svx/source/xoutdev')
-rw-r--r--svx/source/xoutdev/xattr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx
index b85141dd16c5..d5a647d2cab7 100644
--- a/svx/source/xoutdev/xattr.cxx
+++ b/svx/source/xoutdev/xattr.cxx
@@ -1116,7 +1116,7 @@ std::unique_ptr<XLineStartItem> XLineStartItem::checkForUniqueItem( SdrModel* pM
// force a closed polygon
basegfx::B2DPolyPolygon aNew(maPolyPolygon);
aNew.setClosed(true);
- pTempItem.reset(new XLineStartItem( aUniqueName, aNew ));
+ pTempItem.reset(new XLineStartItem( aUniqueName, std::move(aNew) ));
pLineStartItem = pTempItem.get();
}
}
@@ -1355,7 +1355,7 @@ std::unique_ptr<XLineEndItem> XLineEndItem::checkForUniqueItem( SdrModel* pModel
// force a closed polygon
basegfx::B2DPolyPolygon aNew(maPolyPolygon);
aNew.setClosed(true);
- pTempItem.reset(new XLineEndItem( aUniqueName, aNew ));
+ pTempItem.reset(new XLineEndItem( aUniqueName, std::move(aNew) ));
pLineEndItem = pTempItem.get();
}
}