loplugin:moveparam in cui

Change-Id: I059fae3520b06bc733721fe130cf41da13803b9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123383
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2021-10-11 13:53:20 +02:00
parent 01bb611eff
commit c36f569242
4 changed files with 5 additions and 5 deletions

View file

@ -140,7 +140,7 @@ bool DbRegistrationOptionsPage::FillItemSet( SfxItemSet* rCoreSet )
}
if ( m_nOldCount != aRegistrations.size() || m_bModified )
{
rCoreSet->Put(DatabaseMapItem( SID_SB_DB_REGISTER, aRegistrations ));
rCoreSet->Put(DatabaseMapItem( SID_SB_DB_REGISTER, std::move(aRegistrations) ));
bModified = true;
}

View file

@ -59,7 +59,7 @@ namespace svx
DBG_UNHANDLED_EXCEPTION("cui.options");
}
_rFillItems.Put( DatabaseMapItem( SID_SB_DB_REGISTER, aSettings ) );
_rFillItems.Put( DatabaseMapItem( SID_SB_DB_REGISTER, std::move(aSettings) ) );
}

View file

@ -25,9 +25,9 @@
namespace svx
{
DatabaseMapItem::DatabaseMapItem( sal_uInt16 _nId, const DatabaseRegistrations& _rRegistrations )
DatabaseMapItem::DatabaseMapItem( sal_uInt16 _nId, DatabaseRegistrations&& _rRegistrations )
:SfxPoolItem( _nId )
,m_aRegistrations( _rRegistrations )
,m_aRegistrations( std::move(_rRegistrations) )
{
}

View file

@ -64,7 +64,7 @@ namespace svx
public:
DatabaseMapItem( sal_uInt16 _nId, const DatabaseRegistrations& _rRegistrations );
DatabaseMapItem( sal_uInt16 _nId, DatabaseRegistrations&& _rRegistrations );
virtual bool operator==( const SfxPoolItem& ) const override;
virtual DatabaseMapItem* Clone( SfxItemPool *pPool = nullptr ) const override;