diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-31 16:43:00 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-31 22:56:09 +0200 |
commit | 95f23282edb0bdf834b71d7dec2b584e18c82015 (patch) | |
tree | 6af41301abf54325e30fdd237f995b80b96faa80 /sc | |
parent | 900f47904517878530b88776a09a3268f4cc1a84 (diff) |
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.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/queryiter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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()) |