diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-26 17:43:18 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-06-27 15:50:05 -0400 |
commit | 2b300a9e90f40f8b890d6de522aa1ea8e7c0d74a (patch) | |
tree | 7fbeff73725d1a28f4b34d60ad5aba8bc3e590e5 | |
parent | 58d309f141621840047d5ee587a0adc8017289bf (diff) |
We don't need this formula group vector.
Change-Id: I96f3b19a5bb0d761b7abd943df6a2e48cfcbf9bd
-rw-r--r-- | sc/inc/column.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/column3.cxx | 7 |
2 files changed, 1 insertions, 8 deletions
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx index 322d7a60fb73..44946c428e7b 100644 --- a/sc/inc/column.hxx +++ b/sc/inc/column.hxx @@ -110,8 +110,6 @@ class ScColumn SCCOL nCol; SCTAB nTab; - std::vector<ScFormulaCellGroupRef> maFnGroups; - ScAttrArray* pAttrArray; ScDocument* pDocument; bool mbDirtyGroups; /// formula groups are dirty. diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 6cb19dbe7822..216b31859689 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -2713,11 +2713,9 @@ public: class GroupFormulaCells { - std::vector<ScFormulaCellGroupRef>& mrFnGroups; ScFormulaCellGroupRef mxNone; public: - GroupFormulaCells(std::vector<ScFormulaCellGroupRef>& rFnGroups) : mrFnGroups(rFnGroups) {} void operator() (sc::CellStoreType::value_type& node) { @@ -2755,8 +2753,6 @@ public: xGroup->mbInvariant = (eCompState == ScFormulaCell::EqualInvariant); xGroup->mnLength = 2; - mrFnGroups.push_back(xGroup); - pCur->SetCellGroup(xGroup); pPrev->SetCellGroup(xGroup); } @@ -2783,10 +2779,9 @@ void ScColumn::RebuildFormulaGroups() ScFormulaCellGroupRef xNone; CellGroupSetter aFunc(xNone); sc::ProcessFormula(maCells, aFunc); - maFnGroups.clear(); // re-build formula groups. - std::for_each(maCells.begin(), maCells.end(), GroupFormulaCells(maFnGroups)); + std::for_each(maCells.begin(), maCells.end(), GroupFormulaCells()); mbDirtyGroups = false; } |