sc/source/core/data/column2.cxx | 1 + 1 file changed, 1 insertion(+) New commits: commit 0283512c49160aada159576c2fbb9b57c484b007 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Mon Mar 20 07:50:56 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Mon Mar 20 11:36:46 2023 +0000
cid#1523442 Silence this Coverity diagnostic: the copy is intentional Change-Id: Ief116532a294edadf332edb758d3f2018f6249fd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149098 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx index edc11bd54244..5a4ca1bb2340 100644 --- a/sc/source/core/data/column2.cxx +++ b/sc/source/core/data/column2.cxx @@ -808,6 +808,7 @@ sal_uInt16 ScColumn::GetOptimalColWidth( // Go though all non-empty cells within selection. sc::CellStoreType::const_iterator itPos = maCells.begin(); + // coverity[auto_causes_copy] This trivial copy is intentional for (auto [ nRow, nRow2 ] : aMarkedSpans) { while (nRow <= nRow2)