calc: cache GetCellArea results

Desktop / LibreOffice - Szymon Kłos [collabora.com] - 21 November 2022 11:37 UTC

This will avoid repeated lookup in the ScTable::GetCellArea. Which is used for vcl::ITiledRenderable::getDataArea().

Tested in CppunitTest_sc_ucalc

Change-Id: Ied58cfe447e1b924af9b401e95e127c784b80355 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142279

0a55aa8ba38a calc: cache GetCellArea results
sc/inc/table.hxx | 9 +++-
sc/qa/unit/ucalc.cxx | 2 +
sc/source/core/data/document.cxx | 9 ++++
sc/source/core/data/table1.cxx | 19 +++++++--
sc/source/ui/docshell/docsh.cxx | 1 +
sc/source/ui/inc/docsh.hxx | 44 +++++++++++++++----
sc/source/ui/undo/undoblk3.cxx | 4 +-
sc/source/ui/undo/undocell.cxx | 17 +++++---
sc/source/ui/unoobj/docuno.cxx | 92 ++++++++++++++++++++++++++++++----------
sc/source/ui/view/viewfun2.cxx | 10 +++--
sc/source/ui/view/viewfun3.cxx | 10 +++--
sc/source/ui/view/viewfunc.cxx | 46 +++++++++++++-------
12 files changed, 198 insertions(+), 65 deletions(-)

Upstream: cgit.freedesktop.org


  • Share