diff options
Diffstat (limited to 'svx/source/tbxctrls/Palette.cxx')
-rw-r--r-- | svx/source/tbxctrls/Palette.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/tbxctrls/Palette.cxx b/svx/source/tbxctrls/Palette.cxx index 6f90ec00e4f3..fe9b27de95c5 100644 --- a/svx/source/tbxctrls/Palette.cxx +++ b/svx/source/tbxctrls/Palette.cxx @@ -42,9 +42,9 @@ void PaletteASE::LoadColorSet( SvxColorValueSet& rColorSet ) { rColorSet.Clear(); int nIx = 1; - for (ColorList::const_iterator it = maColors.begin(); it != maColors.end(); ++it) + for (const auto& rColor : maColors) { - rColorSet.InsertItem(nIx, it->first, it->second); + rColorSet.InsertItem(nIx, rColor.first, rColor.second); ++nIx; } } @@ -53,9 +53,9 @@ void PaletteASE::LoadColorSet( ColorValueSet& rColorSet ) { rColorSet.Clear(); int nIx = 1; - for (ColorList::const_iterator it = maColors.begin(); it != maColors.end(); ++it) + for (const auto& rColor : maColors) { - rColorSet.InsertItem(nIx, it->first, it->second); + rColorSet.InsertItem(nIx, rColor.first, rColor.second); ++nIx; } } @@ -214,9 +214,9 @@ void PaletteGPL::LoadColorSet( SvxColorValueSet& rColorSet ) rColorSet.Clear(); int nIx = 1; - for (ColorList::const_iterator it = maColors.begin(); it != maColors.end(); ++it) + for (const auto& rColor : maColors) { - rColorSet.InsertItem(nIx, it->first, it->second); + rColorSet.InsertItem(nIx, rColor.first, rColor.second); ++nIx; } } @@ -227,9 +227,9 @@ void PaletteGPL::LoadColorSet( ColorValueSet& rColorSet ) rColorSet.Clear(); int nIx = 1; - for (ColorList::const_iterator it = maColors.begin(); it != maColors.end(); ++it) + for (const auto& rColor : maColors) { - rColorSet.InsertItem(nIx, it->first, it->second); + rColorSet.InsertItem(nIx, rColor.first, rColor.second); ++nIx; } } |