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/fmtui | |
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/fmtui')
-rw-r--r-- | sw/source/ui/fmtui/tmpdlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx index 77aa92b22293..c9370c1e5e9e 100644 --- a/sw/source/ui/fmtui/tmpdlg.cxx +++ b/sw/source/ui/fmtui/tmpdlg.cxx @@ -417,8 +417,8 @@ void SwTemplateDlg::PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) aNames.insert(pBase->GetName()); pBase = pPool->Next(); } - for(std::set<OUString>::const_iterator it = aNames.begin(); it != aNames.end(); ++it) - rBox.append_text(*it); + for(const auto& rName : aNames) + rBox.append_text(rName); } else if (nId == m_nAlignId) { |