From d850510bae778afb788f7d5d48a418858686ea46 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 23 May 2022 11:03:53 +0200 Subject: 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 --- sfx2/source/appl/appuno.cxx | 6 +++--- 1 file 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::SequencePutValue( 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::SequencePutValue( 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::SequencePutValue( 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 ); -- cgit