From 95f23282edb0bdf834b71d7dec2b584e18c82015 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 31 Aug 2024 16:43:00 +0100 Subject: cid#1608435 Use of auto that causes a copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iaff34cb1974932baa27b261041a91fd9a2da9fb7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172702 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- sc/source/core/data/queryiter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc') 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()) -- cgit