summaryrefslogtreecommitdiff
path: root/svl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-26 12:15:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-26 14:28:36 +0200
commitf6b05d9feb5c74606b55a83da9ba06673ccc161f (patch)
treec6728f766304503a433d4246a9e125472b8c7c51 /svl/source
parentb3c6511659c58bcc75a9742e0ae0cc436b6f6825 (diff)
avoid some allocation in SfxItemPropertySet::setPropertyValue
by using std::move on the newly created poolitem, so that the pool does not need to clone it Change-Id: Ib90b14173d19768517eb2a31cc0a105e5eb4d7c8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134991 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source')
-rw-r--r--svl/source/items/itemprop.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx
index 1bb49d191007..56e3254b78f9 100644
--- a/svl/source/items/itemprop.cxx
+++ b/svl/source/items/itemprop.cxx
@@ -180,7 +180,7 @@ void SfxItemPropertySet::setPropertyValue( const SfxItemPropertyMapEntry& rEntry
throw IllegalArgumentException();
}
// apply new item
- rSet.Put( *pNewItem );
+ rSet.Put( std::move(pNewItem) );
}
}