sfx2/source/appl/appuno.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit d850510bae778afb788f7d5d48a418858686ea46
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Mon May 23 11:03:53 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon May 23 18:48:06 2022 +0200

    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.gran...@collabora.co.uk>

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 );

Reply via email to