summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 13:53:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 21:06:20 +0200
commitc36f569242a116f88749f9c5e2cd449351a39ea4 (patch)
treef37bf1b4be9503482f5e09fb49ce1d40f622d1a5 /cui
parent01bb611effe7de983e4872a33fe849e4d0fc7874 (diff)
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>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/dbregister.cxx2
-rw-r--r--cui/source/options/dbregisterednamesconfig.cxx2
-rw-r--r--cui/source/options/dbregistersettings.cxx4
-rw-r--r--cui/source/options/dbregistersettings.hxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/options/dbregister.cxx b/cui/source/options/dbregister.cxx
index 7bcf13435bbf..add9eda6e93c 100644
--- a/cui/source/options/dbregister.cxx
+++ b/cui/source/options/dbregister.cxx
@@ -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;
}
diff --git a/cui/source/options/dbregisterednamesconfig.cxx b/cui/source/options/dbregisterednamesconfig.cxx
index 87681866e067..b33e9ded61c5 100644
--- a/cui/source/options/dbregisterednamesconfig.cxx
+++ b/cui/source/options/dbregisterednamesconfig.cxx
@@ -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) ) );
}
diff --git a/cui/source/options/dbregistersettings.cxx b/cui/source/options/dbregistersettings.cxx
index f7739a1092cc..c544e1111fe3 100644
--- a/cui/source/options/dbregistersettings.cxx
+++ b/cui/source/options/dbregistersettings.cxx
@@ -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) )
{
}
diff --git a/cui/source/options/dbregistersettings.hxx b/cui/source/options/dbregistersettings.hxx
index 9146afe7b1d3..2f86392bc9cf 100644
--- a/cui/source/options/dbregistersettings.hxx
+++ b/cui/source/options/dbregistersettings.hxx
@@ -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;