[Libreoffice-commits] core.git: Branch 'feature/formula-core-rework' - sc/source
Kohei Yoshida
kohei.yoshida at gmail.com
Wed Apr 24 08:04:33 PDT 2013
sc/source/core/data/column3.cxx | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
New commits:
commit e7d9a4de9d8d714a6ec99a6aebd4597ff7295279
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Wed Apr 24 10:57:51 2013 -0400
We have function object for this.
Change-Id: I9021771a6d6be9980ca1c46a0b5034f84fa0d49f
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index 60e4b64..e69a8cc 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;
}
More information about the Libreoffice-commits
mailing list