diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-11-14 00:57:07 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-14 09:58:55 +0100 |
commit | 25622f29b4003307d2ba780ff1232d8b7cdafa35 (patch) | |
tree | ad15c747685e803deeb5fffd209ae0b5992ac87a /sw/source/core/doc/doctxm.cxx | |
parent | 638d619866784510dcbf0cadb6eb251208489a73 (diff) |
Simplify containers iterations in sw/source/core/[d-l]*
Use range-based loop or replace with STL functions
Change-Id: I143e9a769e1c1bb0228933a0a92150f00e3e1f20
Reviewed-on: https://gerrit.libreoffice.org/63347
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/doctxm.cxx')
-rw-r--r-- | sw/source/core/doc/doctxm.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index fb4a438bdda4..cb8179062d71 100644 --- a/sw/source/core/doc/doctxm.cxx +++ b/sw/source/core/doc/doctxm.cxx @@ -1022,9 +1022,9 @@ void SwTOXBaseSection::Update(const SfxItemSet* pAttr, aN2L.RestoreUpperFrames( pDoc->GetNodes(), nIdx, nIdx + 1 ); std::set<SwRootFrame*> aAllLayouts = pDoc->GetAllLayouts(); - for ( std::set<SwRootFrame*>::iterator pLayoutIter = aAllLayouts.begin(); pLayoutIter != aAllLayouts.end(); ++pLayoutIter) + for ( const auto& rpLayout : aAllLayouts ) { - SwFrame::CheckPageDescs( static_cast<SwPageFrame*>((*pLayoutIter)->Lower()) ); + SwFrame::CheckPageDescs( static_cast<SwPageFrame*>(rpLayout->Lower()) ); } SetProtect( SwTOXBase::IsProtected() ); |