diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 14:20:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-11 16:05:49 +0200 |
commit | f477b54e01766fabc0179beec9aa3dc31b5824e2 (patch) | |
tree | 99efa8fffed5c397b3dc7974153bb3ffa49c872d /sc/source/core/tool | |
parent | 071c117ba551e579962ff5b70f79cb7934d96c77 (diff) |
loplugin:moveparam in sc
Change-Id: I4b9d45a6b0231841a5fe00d0193a8530b9e05559
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123389
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/tool')
-rw-r--r-- | sc/source/core/tool/addincol.cxx | 6 | ||||
-rw-r--r-- | sc/source/core/tool/chgtrack.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/tool/dbdata.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/tool/prnsave.cxx | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx index 3774d8d06790..0545622cd43e 100644 --- a/sc/source/core/tool/addincol.cxx +++ b/sc/source/core/tool/addincol.cxx @@ -128,11 +128,11 @@ const ::std::vector<ScUnoAddInFuncData::LocalizedName>& ScUnoAddInFuncData::GetC return maCompNames; } -void ScUnoAddInFuncData::SetCompNames( const ::std::vector< ScUnoAddInFuncData::LocalizedName >& rNew ) +void ScUnoAddInFuncData::SetCompNames( ::std::vector< ScUnoAddInFuncData::LocalizedName >&& rNew ) { OSL_ENSURE( !bCompInitialized, "SetCompNames after initializing" ); - maCompNames = rNew; + maCompNames = std::move(rNew); bCompInitialized = true; } @@ -513,7 +513,7 @@ void ScUnoAddInCollection::ReadConfiguration() xFunc, aObject, nVisibleCount, pVisibleArgs.get(), SC_CALLERPOS_NONE ); - pData->SetCompNames( aCompNames ); + pData->SetCompNames( std::move(aCompNames) ); ppFuncData[nFuncPos+nOld].reset(pData); diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx index 3583fb28f549..09cbc94de990 100644 --- a/sc/source/core/tool/chgtrack.cxx +++ b/sc/source/core/tool/chgtrack.cxx @@ -2033,8 +2033,8 @@ ScChangeTrack::ScChangeTrack( ScDocument& rDocP ) : memset( ppContentSlots.get(), 0, mnContentSlots * sizeof( ScChangeActionContent* ) ); } -ScChangeTrack::ScChangeTrack( ScDocument& rDocP, const std::set<OUString>& aTempUserCollection) : - maUserCollection(aTempUserCollection), +ScChangeTrack::ScChangeTrack( ScDocument& rDocP, std::set<OUString>&& aTempUserCollection) : + maUserCollection(std::move(aTempUserCollection)), aFixDateTime( DateTime::SYSTEM ), rDoc( rDocP ) { diff --git a/sc/source/core/tool/dbdata.cxx b/sc/source/core/tool/dbdata.cxx index 285654ef25c7..e47a97c084e0 100644 --- a/sc/source/core/tool/dbdata.cxx +++ b/sc/source/core/tool/dbdata.cxx @@ -681,9 +681,9 @@ void ScDBData::EndTableColumnNamesListener() EndListeningAll(); } -void ScDBData::SetTableColumnNames( const ::std::vector< OUString >& rNames ) +void ScDBData::SetTableColumnNames( ::std::vector< OUString >&& rNames ) { - maTableColumnNames = rNames; + maTableColumnNames = std::move(rNames); mbTableColumnNamesDirty = false; } diff --git a/sc/source/core/tool/prnsave.cxx b/sc/source/core/tool/prnsave.cxx index d6df22d5ce6a..e5a2e92f1a44 100644 --- a/sc/source/core/tool/prnsave.cxx +++ b/sc/source/core/tool/prnsave.cxx @@ -35,9 +35,9 @@ ScPrintSaverTab::~ScPrintSaverTab() mpRepeatRow.reset(); } -void ScPrintSaverTab::SetAreas( const ScRangeVec& rRanges, bool bEntireSheet ) +void ScPrintSaverTab::SetAreas( ScRangeVec&& rRanges, bool bEntireSheet ) { - maPrintRanges = rRanges; + maPrintRanges = std::move(rRanges); mbEntireSheet = bEntireSheet; } |