summaryrefslogtreecommitdiff
path: root/unoidl/source/unoidl-write.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-10 20:41:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 11:37:04 +0200
commit66e5317a91475ab5f7c796f023431d6a642fd60e (patch)
tree8a6d107b695cd6a064276b8da1163b021bc018bd /unoidl/source/unoidl-write.cxx
parentbbe9bfee56ce395c5fa1c1173e9909925a3a6393 (diff)
loplugin:moveparam in unoidl
Change-Id: Id3069cad0b118b5593bb7a0faa9d7e33e5bef168 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123353 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unoidl/source/unoidl-write.cxx')
-rw-r--r--unoidl/source/unoidl-write.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/unoidl/source/unoidl-write.cxx b/unoidl/source/unoidl-write.cxx
index b0fbc31e5023..5ddd98468359 100644
--- a/unoidl/source/unoidl-write.cxx
+++ b/unoidl/source/unoidl-write.cxx
@@ -311,8 +311,8 @@ struct Item {
struct ConstItem {
ConstItem(
unoidl::ConstantValue const & theConstant,
- std::vector< OUString > const & theAnnotations):
- constant(theConstant), annotations(theAnnotations), nameOffset(0),
+ std::vector< OUString >&& theAnnotations):
+ constant(theConstant), annotations(std::move(theAnnotations)), nameOffset(0),
dataOffset(0)
{}
@@ -637,7 +637,7 @@ sal_uInt64 writeMap(
for (auto & j: ent2->getMembers()) {
if (!cmap.insert(
std::make_pair(
- j.name, ConstItem(j.value, j.annotations))).
+ j.name, ConstItem(j.value, std::vector(j.annotations)))).
second)
{
std::cout