sc/source/filter/excel/xetable.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 2b0502bf9c4bac42b9de174d0dad94d85047e882 Author: Noel Grandin <[email protected]> AuthorDate: Mon Feb 2 17:13:47 2026 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Tue Feb 3 07:13:55 2026 +0100 tdf#79654 shave some time off hot loop Change-Id: Ib947c10c7595cbb79bf06c968ef5e210e2484bcd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198567 Reviewed-by: Noel Grandin <[email protected]> Tested-by: Jenkins diff --git a/sc/source/filter/excel/xetable.cxx b/sc/source/filter/excel/xetable.cxx index 680a390f3ca5..6bfbfa565718 100644 --- a/sc/source/filter/excel/xetable.cxx +++ b/sc/source/filter/excel/xetable.cxx @@ -2067,7 +2067,7 @@ void XclExpRow::Finalize( const ScfUInt16Vec& rColXFIndexes, ScfUInt16Vec& aXFIn aXFIndexes[ i ] = EXC_XF_NOTFOUND; } // They can differ only up to maxNonDefault, in the rest they are the same. - for( size_t i = maxStartAllDefault; i < aXFIndexes.size(); ++i ) + for( size_t i = maxStartAllDefault, cnt = aXFIndexes.size(); i < cnt; ++i ) aXFIndexes[ i ] = EXC_XF_NOTFOUND; maxStartAllNotFound = maxStartAllDefault; }
