diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-23 11:03:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-23 18:48:06 +0200 |
commit | d850510bae778afb788f7d5d48a418858686ea46 (patch) | |
tree | e0c174917edd45a23e39d3ac248886bd0491b40d /sfx2 | |
parent | 728ff63903083f3bc4321e8fbbb2c1d4b1755a0c (diff) |
use std::move to avoid some object allocation
Change-Id: Id37b54810e7755bd7a4e354c777e0cfdf069080f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134801
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appuno.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/appuno.cxx b/sfx2/source/appl/appuno.cxx index 1c4994f93929..6c75faa21977 100644 --- a/sfx2/source/appl/appuno.cxx +++ b/sfx2/source/appl/appuno.cxx @@ -208,7 +208,7 @@ void TransformParameters( sal_uInt16 nSlotId, const uno::Sequence<beans::Propert // so it's either a simple property or a complex property in one single UNO struct if( pItem->PutValue( rProp.Value, bConvertTwips ? CONVERT_TWIPS : 0 ) ) // only use successfully converted items - rSet.Put( *pItem ); + rSet.Put( std::move(pItem) ); else { SAL_WARN( "sfx", "Property not convertible: " << pSlot->pUnoName ); @@ -304,7 +304,7 @@ void TransformParameters( sal_uInt16 nSlotId, const uno::Sequence<beans::Propert #endif if( pItem->PutValue( pProp->Value, 0 ) ) // only use successfully converted items - rSet.Put( *pItem ); + rSet.Put( std::move(pItem) ); else { SAL_WARN( "sfx", "Property not convertible: " << rArg.pName ); @@ -326,7 +326,7 @@ void TransformParameters( sal_uInt16 nSlotId, const uno::Sequence<beans::Propert #endif if( pItem->PutValue( rProp.Value, 0 ) ) // only use successfully converted items - rSet.Put( *pItem ); + rSet.Put( std::move(pItem) ); else { SAL_WARN( "sfx", "Property not convertible: " << rArg.pName ); |