diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-24 10:57:51 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-04-30 13:10:38 -0400 |
commit | 574dd6d83a4cc6ccb214ad40c63c0c9c3f8229ec (patch) | |
tree | fad98233a8109cc30da68650507d94dca13769b6 /sc | |
parent | 06a8ebc878ff9bcab26556d5b5a46532e232d416 (diff) |
We have function object for this.
Change-Id: I9021771a6d6be9980ca1c46a0b5034f84fa0d49f
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column3.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index 60e4b6423f8c..e69a8cc0934a 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -48,6 +48,7 @@ #include "globalnames.hxx" #include "cellvalue.hxx" #include "tokenarray.hxx" +#include "stlalgorithm.hxx" #include <com/sun/star/i18n/LocaleDataItem.hpp> @@ -2058,9 +2059,7 @@ void ScColumn::RebuildFormulaGroups() return; // clear double groups - for (std::vector< ColDoubleEntry *>::iterator it = maDoubles.begin(); - it != maDoubles.end(); ++it ) - delete *it; + std::for_each(maDoubles.begin(), maDoubles.end(), ScDeleteObjectByPtr<ColDoubleEntry>()); maDoubles.clear(); // clear previous groups @@ -2186,7 +2185,6 @@ void ScColumn::RebuildFormulaGroups() } #endif - bDirtyGroups = false; } |