summaryrefslogtreecommitdiff
path: root/sc/source/core/data/colorscale.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-02-09 17:17:23 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-02-09 17:36:59 +0100
commit4192288e67333fe0ba78611f3809d8dccdce33de (patch)
tree1312fa52a21a99c0cc61ea6c05fa24f6a1113b14 /sc/source/core/data/colorscale.cxx
parentf50f0ae2fc9f0df7cc105cd075481172d33bc70a (diff)
Simplify containers iterations in sc/source/core/data/[b-d].cxx
Use range-based loop or replace with STL functions Change-Id: Ifb3c6a2fdcd32122a6fd371191b058117015c3ed Reviewed-on: https://gerrit.libreoffice.org/67588 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/colorscale.cxx')
-rw-r--r--sc/source/core/data/colorscale.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/colorscale.cxx b/sc/source/core/data/colorscale.cxx
index a991cc05a79f..53e4d82eeb8b 100644
--- a/sc/source/core/data/colorscale.cxx
+++ b/sc/source/core/data/colorscale.cxx
@@ -374,9 +374,9 @@ ScColorScaleFormat::ScColorScaleFormat(ScDocument* pDoc):
ScColorScaleFormat::ScColorScaleFormat(ScDocument* pDoc, const ScColorScaleFormat& rFormat):
ScColorFormat(pDoc)
{
- for(ScColorScaleEntries::const_iterator itr = rFormat.begin(); itr != rFormat.end(); ++itr)
+ for(const auto& rxEntry : rFormat)
{
- maColorScales.push_back(std::make_unique<ScColorScaleEntry>(pDoc, **itr));
+ maColorScales.push_back(std::make_unique<ScColorScaleEntry>(pDoc, *rxEntry));
}
}