summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/tpcolor.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-02-27 22:34:17 +0100
committerJulien Nabet <serval2412@yahoo.fr>2018-02-28 11:02:12 +0100
commit81260c448911069ce8cb051d3a973ec52b9b43a3 (patch)
tree2c18396c931db3f78f21e813fd9307ea5405b85b /cui/source/tabpages/tpcolor.cxx
parentb6aee26f3630fd531e51f781391ba0130001df60 (diff)
Use for-range loops in cui
Change-Id: I82cbea6d221ec0fd0e0d4620bdda698f2bed520e Reviewed-on: https://gerrit.libreoffice.org/50472 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'cui/source/tabpages/tpcolor.cxx')
-rw-r--r--cui/source/tabpages/tpcolor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx
index d9519b32baa0..d33173d9b83b 100644
--- a/cui/source/tabpages/tpcolor.cxx
+++ b/cui/source/tabpages/tpcolor.cxx
@@ -212,9 +212,9 @@ void SvxColorTabPage::FillPaletteLB()
{
m_pSelectPalette->Clear();
std::vector<OUString> aPaletteList = maPaletteManager.GetPaletteList();
- for( std::vector<OUString>::iterator it = aPaletteList.begin(); it != aPaletteList.end(); ++it )
+ for (auto const& palette : aPaletteList)
{
- m_pSelectPalette->InsertEntry( *it );
+ m_pSelectPalette->InsertEntry(palette);
}
OUString aPaletteName( officecfg::Office::Common::UserColors::PaletteName::get() );
m_pSelectPalette->SelectEntry(aPaletteName);