summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/interpr1.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-01-31 01:45:26 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-31 10:58:36 +0100
commit8da8cc3c9322e4b9438bbb5f4a80af80dbbfe008 (patch)
tree4800aeb55a861f8a2dbb20b77cae773a4ca30401 /sc/source/core/tool/interpr1.cxx
parent8a722c086deb751054d02f9f73e92d045cd73e1f (diff)
Simplify containers iterations in sc/source/core/[o-t]*
Use range-based loop or replace with STL functions Change-Id: I3ecd9e92b9690e416b4a6c8f3830346ea23c5882 Reviewed-on: https://gerrit.libreoffice.org/67182 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/tool/interpr1.cxx')
-rw-r--r--sc/source/core/tool/interpr1.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index e249229dca85..a31897a0de1b 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -6148,10 +6148,12 @@ void ScInterpreter::IterateParametersIfs( double(*ResultFunc)( const sc::ParamIf
return;
}
- std::vector<sal_uInt32>::iterator itRes = vConditions.begin(), itResEnd = vConditions.end();
std::vector<double>::const_iterator itThisRes = aResValues.begin();
- for (; itRes != itResEnd; ++itRes, ++itThisRes)
- *itRes += *itThisRes;
+ for (auto& rCondition : vConditions)
+ {
+ rCondition += *itThisRes;
+ ++itThisRes;
+ }
}
else
{