diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2018-02-07 21:47:10 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-08 07:23:18 +0100 |
commit | d761be572b6a49dff64db47bbdda309e7b984f95 (patch) | |
tree | 16e859e0492caa55c2d85e13b7c7e20e837746df /sfx2/source/view | |
parent | 7daa249981e0d0b69f4f7564bfb6bc643f375039 (diff) |
Use for-range loops in sfx2 (part2)
Change-Id: Ie13b5836eff2e9b5dfec4bb95935de9560ab4be0
Reviewed-on: https://gerrit.libreoffice.org/49393
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/view')
-rw-r--r-- | sfx2/source/view/viewsh.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx index c64a50031119..30f90c4e26c8 100644 --- a/sfx2/source/view/viewsh.cxx +++ b/sfx2/source/view/viewsh.cxx @@ -1267,8 +1267,8 @@ void SfxViewShell::PushSubShells_Impl( bool bPush ) SfxDispatcher *pDisp = pFrame->GetDispatcher(); if ( bPush ) { - for(SfxShellArr_Impl::const_iterator i = pImpl->aArr.begin(); i != pImpl->aArr.end(); ++i) - pDisp->Push(**i); + for (auto const& elem : pImpl->aArr) + pDisp->Push(*elem); } else if(!pImpl->aArr.empty()) { |