summaryrefslogtreecommitdiff
path: root/sc/source/ui/formdlg
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/formdlg
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/formdlg')
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 980fd83b70de..f2c52f45fad7 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -239,10 +239,8 @@ void ScFunctionWin::UpdateFunctionList()
}
else // LRU list
{
- for (::std::vector<const formula::IFunctionDescription*>::iterator iter=aLRUList.begin();
- iter != aLRUList.end(); ++iter)
+ for (const formula::IFunctionDescription* pDesc : aLRUList)
{
- const formula::IFunctionDescription* pDesc = *iter;
if (pDesc)
aFuncList->SetEntryData( aFuncList->InsertEntry( pDesc->getFunctionName()), const_cast<formula::IFunctionDescription *>(pDesc));
}