diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-10-27 19:50:00 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-30 07:52:11 +0100 |
commit | 16b2b4f27acb83fc651b8484dead53ebd0e269e1 (patch) | |
tree | 04bc6e6b39ba22fdc13942008434d97495c88635 /sw/source/ui/dialog | |
parent | 922c4a61ca21848777703a28abfd442dd0b4a858 (diff) |
Simplify containers iterations in sw/source/ui*
Use range-based loop or replace with STL functions.
Change-Id: I0d690e873f720a68f04991674ce84ec590231fd0
Reviewed-on: https://gerrit.libreoffice.org/62432
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/ui/dialog')
-rw-r--r-- | sw/source/ui/dialog/ascfldlg.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/ui/dialog/ascfldlg.cxx b/sw/source/ui/dialog/ascfldlg.cxx index 2be497a2701b..3b36d6f858d2 100644 --- a/sw/source/ui/dialog/ascfldlg.cxx +++ b/sw/source/ui/dialog/ascfldlg.cxx @@ -204,10 +204,9 @@ SwAsciiFilterDlg::SwAsciiFilterDlg( weld::Window* pParent, SwDocShell& rDocSh, } // insert into listbox - for( std::set< OUString >::const_iterator it = aFontNames.begin(); - it != aFontNames.end(); ++it ) + for( const auto& rFontName : aFontNames ) { - m_xFontLB->append_text(*it); + m_xFontLB->append_text(rFontName); } if( aOpt.GetFontName().isEmpty() ) |