summaryrefslogtreecommitdiff
path: root/svx/source/styles/ColorSets.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-11 09:53:05 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-12 07:12:21 +0000
commit875984617cfd6c773eb93f339929eb3fabd3e97b (patch)
treeabb092c1b0d995d55f2f4508801df23377c9cc6d /svx/source/styles/ColorSets.cxx
parent6bc3c2bdc5279314881b7e950d76d4d813470d11 (diff)
clang-tidy modernize-loop-convert in svx
Change-Id: I09e5243e5dff46ceccef1a707e648ee9cb0c37c5 Reviewed-on: https://gerrit.libreoffice.org/24875 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svx/source/styles/ColorSets.cxx')
-rw-r--r--svx/source/styles/ColorSets.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/styles/ColorSets.cxx b/svx/source/styles/ColorSets.cxx
index 504ffa027fa1..ab313c8599f1 100644
--- a/svx/source/styles/ColorSets.cxx
+++ b/svx/source/styles/ColorSets.cxx
@@ -113,10 +113,10 @@ void ColorSets::init()
const ColorSet& ColorSets::getColorSet(const OUString& rName)
{
- for (size_t i = 0; i < maColorSets.size(); ++i)
+ for (ColorSet & rColorSet : maColorSets)
{
- if (maColorSets[i].getName() == rName)
- return maColorSets[i];
+ if (rColorSet.getName() == rName)
+ return rColorSet;
}
return maColorSets[0];
}