sc/source/core/data/dpshttab.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit e0dfc03f25d0cc0d5b12498fe8fa49ca87855c32 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Tue Jan 16 09:37:25 2024 +0000 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Tue Jan 16 16:16:02 2024 +0100 cid#1546333 COPY_INSTEAD_OF_MOVE and cid#1545979 COPY_INSTEAD_OF_MOVE Change-Id: I9ccdcf78ee961f9b90e365a246878c9243225ade Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162163 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/core/data/dpshttab.cxx b/sc/source/core/data/dpshttab.cxx index a5fd1bd01d5b..ae9407a6a64c 100644 --- a/sc/source/core/data/dpshttab.cxx +++ b/sc/source/core/data/dpshttab.cxx @@ -178,7 +178,7 @@ void ScSheetDPData::FilterCacheTable(std::vector<ScDPFilteredCache::Criterion>&& { CreateCacheTable(); aCacheTable.filterByPageDimension( - rCriteria, (IsRepeatIfEmpty() ? rCatDims : std::unordered_set<sal_Int32>())); + rCriteria, (IsRepeatIfEmpty() ? std::move(rCatDims) : std::unordered_set<sal_Int32>())); } void ScSheetDPData::GetDrillDownData(std::vector<ScDPFilteredCache::Criterion>&& rCriteria, std::unordered_set<sal_Int32>&& rCatDims, Sequence< Sequence<Any> >& rData) @@ -189,7 +189,7 @@ void ScSheetDPData::GetDrillDownData(std::vector<ScDPFilteredCache::Criterion>&& return; aCacheTable.filterTable( - rCriteria, rData, IsRepeatIfEmpty() ? rCatDims : std::unordered_set<sal_Int32>()); + rCriteria, rData, IsRepeatIfEmpty() ? std::move(rCatDims) : std::unordered_set<sal_Int32>()); } void ScSheetDPData::CalcResults(CalcInfo& rInfo, bool bAutoShow)