diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-01-16 09:44:13 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-01-17 07:34:03 +0100 |
commit | 2b56117c188989a7b86cb74133b211cb7fadcca6 (patch) | |
tree | f401939f10aef1db4e5aed91d1381d199962f8be /sc/source/ui/dbgui/filtdlg.cxx | |
parent | dbbdc76f7fc8f762d9c9e8494cae61b527f7ddca (diff) |
Simplify containers iterations in sc/source/ui/[A-Sa-d]*
Use range-based loop or replace with STL functions
Change-Id: I261dcba1778a9d895491452fb3fee3dd4e8dfc33
Reviewed-on: https://gerrit.libreoffice.org/66422
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/dbgui/filtdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/filtdlg.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/ui/dbgui/filtdlg.cxx b/sc/source/ui/dbgui/filtdlg.cxx index 61b691040635..d9b6f599483e 100644 --- a/sc/source/ui/dbgui/filtdlg.cxx +++ b/sc/source/ui/dbgui/filtdlg.cxx @@ -534,10 +534,9 @@ void ScFilterDlg::UpdateValueList( size_t nList ) OSL_ASSERT(pList); - std::vector<ScTypedStrData>::const_iterator it = pList->maFilterEntries.begin(), itEnd = pList->maFilterEntries.end(); - for (; it != itEnd; ++it) + for (const auto& rEntry : pList->maFilterEntries) { - pValList->InsertEntry(it->GetString(), nListPos++); + pValList->InsertEntry(rEntry.GetString(), nListPos++); } } pValList->SetText( aCurValue ); |