sc/source/core/data/queryiter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 95f23282edb0bdf834b71d7dec2b584e18c82015 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Aug 31 16:43:00 2024 +0100 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Sat Aug 31 22:56:09 2024 +0200 cid#1608435 Use of auto that causes a copy Change-Id: Iaff34cb1974932baa27b261041a91fd9a2da9fb7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172702 Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/core/data/queryiter.cxx b/sc/source/core/data/queryiter.cxx index f1d246868275..aa65424254a5 100644 --- a/sc/source/core/data/queryiter.cxx +++ b/sc/source/core/data/queryiter.cxx @@ -572,7 +572,7 @@ bool ScQueryCellIteratorBase< accessType, queryType >::BinarySearch( SCCOLROW co return false; } - auto aIndexer(maParam.bByRow ? MakeBinarySearchIndexer(&pCol->maCells, nRow, maParam.nRow2) : + const auto& aIndexer(maParam.bByRow ? MakeBinarySearchIndexer(&pCol->maCells, nRow, maParam.nRow2) : MakeBinarySearchIndexer(nullptr, nCol, maParam.nCol2)); if (!aIndexer.isValid())