diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-10 12:55:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-10-11 07:28:20 +0200 |
commit | 6c247c2c867281181d3d35157bca5e72a3c0bca8 (patch) | |
tree | 6037438d4c6f627219ddcaa785cb84775939016b /sc/inc | |
parent | 3b6366773389c55c127f097d5d82d27d5efaa69a (diff) |
cool#7330 calc perf: PaintTile's FillInfo
try to spend a little less time here, when searching twice, we can use
the index result of the first search as a hint
Change-Id: I7fc0c2fb4e5e338d2c3f8a3d642043a1b301e7b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157749
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/attarray.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx index cbc8f7cfe2f9..521f3b7bb1d6 100644 --- a/sc/inc/attarray.hxx +++ b/sc/inc/attarray.hxx @@ -183,7 +183,7 @@ public: bool ApplyFlags( SCROW nStartRow, SCROW nEndRow, ScMF nFlags ); bool RemoveFlags( SCROW nStartRow, SCROW nEndRow, ScMF nFlags ); - bool Search( SCROW nRow, SCSIZE& nIndex ) const; + bool Search( SCROW nRow, SCSIZE& nIndex, std::optional<SCROW> nIndexHint = {} ) const; bool HasAttrib( SCROW nRow1, SCROW nRow2, HasAttrFlags nMask ) const; bool HasAttrib( SCROW nRow, HasAttrFlags nMask, SCROW* nStartRow = nullptr, SCROW* nEndRow = nullptr ) const; |