summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2016-07-16 20:01:48 -0400
committerKohei Yoshida <libreoffice@kohei.us>2016-07-17 13:00:36 +0000
commite57a5905fb2975307af654710430d0a876dbd061 (patch)
tree364527c7b09f9704e6c6ece7ca473c9e2030177f /sc/source/core/data/column.cxx
parent0473f6fc0445272b1e9d01ca9166d4fae58a5a56 (diff)
Use mdds' event callback to count formula blocks in each column.
And use it to speed up certain formula related operations. Change-Id: I43b1d860d6b665556624ba7bc716826799919015 Reviewed-on: https://gerrit.libreoffice.org/27261 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'sc/source/core/data/column.cxx')
-rw-r--r--sc/source/core/data/column.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index 5766c72efa4f..00664c63bf43 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -84,13 +84,16 @@ ScColumn::ScColumn() :
maCellTextAttrs(MAXROWCOUNT),
maCellNotes(MAXROWCOUNT),
maBroadcasters(MAXROWCOUNT),
- maCells(MAXROWCOUNT),
+ maCellsEvent(this),
+ maCells(maCellsEvent),
nCol( 0 ),
nTab( 0 ),
pAttrArray( nullptr ),
pDocument( nullptr ),
- mbDirtyGroups(true)
+ mbDirtyGroups(true),
+ mnBlkCountFormula(0)
{
+ maCells.resize(MAXROWCOUNT);
}
ScColumn::~ScColumn()