summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/scuiautofmt.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-01-08 14:14:32 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-08 14:16:45 +0100
commit5072e17ec99da280e70413fa2ec571aa928c4503 (patch)
tree9dc7b20258b0d3d5448240f065745212e975469a /sc/source/ui/miscdlgs/scuiautofmt.cxx
parent4d9ed6769f4333331f18d6cad3fc209afa3f0c62 (diff)
Simplify containers iterations in sc/source/ui/[f-u]*
Use range-based loop or replace with STL functions Change-Id: Ia117ee3bea76c1cee84c0d2bb43195c59764fe93 Reviewed-on: https://gerrit.libreoffice.org/65961 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/miscdlgs/scuiautofmt.cxx')
-rw-r--r--sc/source/ui/miscdlgs/scuiautofmt.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/miscdlgs/scuiautofmt.cxx b/sc/source/ui/miscdlgs/scuiautofmt.cxx
index c5ada4123716..2b08756b4d87 100644
--- a/sc/source/ui/miscdlgs/scuiautofmt.cxx
+++ b/sc/source/ui/miscdlgs/scuiautofmt.cxx
@@ -128,9 +128,8 @@ void ScAutoFormatDlg::Init()
m_pBtnRename->SetClickHdl ( LINK( this, ScAutoFormatDlg, RenameHdl ) );
m_pLbFormat->SetDoubleClickHdl( LINK( this, ScAutoFormatDlg, DblClkHdl ) );
- ScAutoFormat::const_iterator it = pFormat->begin(), itEnd = pFormat->end();
- for (; it != itEnd; ++it)
- m_pLbFormat->InsertEntry(it->second->GetName());
+ for (const auto& rEntry : *pFormat)
+ m_pLbFormat->InsertEntry(rEntry.second->GetName());
if (pFormat->size() == 1)
m_pBtnRemove->Disable();