Kaydet (Commit) 574dd6d8 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

We have function object for this.

Change-Id: I9021771a6d6be9980ca1c46a0b5034f84fa0d49f
üst 06a8ebc8
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
#include "globalnames.hxx" #include "globalnames.hxx"
#include "cellvalue.hxx" #include "cellvalue.hxx"
#include "tokenarray.hxx" #include "tokenarray.hxx"
#include "stlalgorithm.hxx"
#include <com/sun/star/i18n/LocaleDataItem.hpp> #include <com/sun/star/i18n/LocaleDataItem.hpp>
...@@ -2058,9 +2059,7 @@ void ScColumn::RebuildFormulaGroups() ...@@ -2058,9 +2059,7 @@ void ScColumn::RebuildFormulaGroups()
return; return;
// clear double groups // clear double groups
for (std::vector< ColDoubleEntry *>::iterator it = maDoubles.begin(); std::for_each(maDoubles.begin(), maDoubles.end(), ScDeleteObjectByPtr<ColDoubleEntry>());
it != maDoubles.end(); ++it )
delete *it;
maDoubles.clear(); maDoubles.clear();
// clear previous groups // clear previous groups
...@@ -2186,7 +2185,6 @@ void ScColumn::RebuildFormulaGroups() ...@@ -2186,7 +2185,6 @@ void ScColumn::RebuildFormulaGroups()
} }
#endif #endif
bDirtyGroups = false; bDirtyGroups = false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment